From: Kefu Chai Date: Thu, 15 Aug 2019 11:33:15 +0000 (+0800) Subject: osdc: should release the rwlock before waiting X-Git-Tag: v15.1.0~1879^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F29686%2Fhead;p=ceph.git osdc: should release the rwlock before waiting this addresses a regresssion introduced by 20b1ac6e Signed-off-by: Kefu Chai --- diff --git a/src/osdc/Objecter.cc b/src/osdc/Objecter.cc index ec0126a0bc65..b073f42bc48e 100644 --- a/src/osdc/Objecter.cc +++ b/src/osdc/Objecter.cc @@ -1925,6 +1925,7 @@ void Objecter::wait_for_osd_map() std::unique_lock mlock{lock}; C_SafeCond *context = new C_SafeCond(lock, cond, &done, NULL); waiting_for_map[0].push_back(pair(context, 0)); + l.unlock(); cond.wait(mlock, [&done] { return done; }); }