From a756ccc3d527cd0e051021813ad7d3f66c70f0f9 Mon Sep 17 00:00:00 2001 From: Yao Zongyou Date: Wed, 15 Aug 2018 23:08:29 +0800 Subject: [PATCH] rgw: fix deadlock on RGWIndexCompletionManager::stop The lock has been acquired in complete_op_data::stop Fixes: http://tracker.ceph.com/issues/26949 Signed-off-by: Yao Zongyou (cherry picked from commit 519cea1bf58461a65bab1e4aecff1fd3ea3191b0) --- src/rgw/rgw_rados.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 876147417a68d..9a22e22e07dc4 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -3602,7 +3602,6 @@ public: for (int i = 0; i < num_shards; ++i) { Mutex::Locker l(*locks[i]); for (auto c : completions[i]) { - Mutex::Locker cl(c->lock); c->stop(); } } -- 2.39.5