diff options
author | Samuel Just <sam.just@inktank.com> | 2013-03-05 14:35:39 -0800 |
---|---|---|
committer | Samuel Just <sam.just@inktank.com> | 2013-03-15 12:08:16 -0700 |
commit | 1b5c1564bad3574db257cb17d48190958d870f51 (patch) | |
tree | ad0e6e90469be870841e2c23674cc30ed724e1d0 | |
parent | 50d2d4a77f339d489703c1125dc5c1159d08ca8a (diff) | |
download | ceph-1b5c1564bad3574db257cb17d48190958d870f51.tar.gz |
OSD: lock not needed in ~DeletingState()
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>
(cherry picked from commit e4bf1bcab159d7c5b720f5da01877c0f67c16d16)
-rw-r--r-- | src/osd/OSD.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/osd/OSD.h b/src/osd/OSD.h index 3a4e5117af5..3eda976bfbc 100644 --- a/src/osd/OSD.h +++ b/src/osd/OSD.h @@ -149,7 +149,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) { |