Skip to content

Commit

Permalink
CephContext: unregister lockdep after stopping service thread
Browse files Browse the repository at this point in the history
Fixes: ceph#6769
Fixes: ceph#6674
Signed-off-by: Samuel Just <[email protected]>
Reviewed-by: Josh Durgin <[email protected]>
  • Loading branch information
Samuel Just committed Nov 14, 2013
1 parent dd9d8b0 commit 1212a21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/ceph_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -292,12 +292,12 @@ CephContext::CephContext(uint32_t module_type_)

CephContext::~CephContext()
{
join_service_thread();

if (_conf->lockdep) {
lockdep_unregister_ceph_context(this);
}

join_service_thread();

_admin_socket->unregister_command("perfcounters_dump");
_admin_socket->unregister_command("perf dump");
_admin_socket->unregister_command("1");
Expand Down

0 comments on commit 1212a21

Please sign in to comment.