]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
OSD: lock not needed in ~DeletingState()
authorSamuel Just <sam.just@inktank.com>
Tue, 5 Mar 2013 22:35:39 +0000 (14:35 -0800)
committerSamuel Just <sam.just@inktank.com>
Thu, 14 Mar 2013 01:14:43 +0000 (18:14 -0700)
No further refs to the object can remain at this point.
Furthermore, the callbacks might lock mutexes of their
own.

Backport: bobtail
Fixes: #4378
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
src/osd/OSD.h

index 500944e2f47c16bfb9b4ad4f62c8795a9e708c33..23d2537b74575f7abb3ed3752ddddc823dab154e 100644 (file)
@@ -150,7 +150,6 @@ public:
     on_deletion_complete.push_front(completion);
   }
   ~DeletingState() {
-    Mutex::Locker l(lock);
     for (list<Context *>::iterator i = on_deletion_complete.begin();
         i != on_deletion_complete.end();
         ++i) {