mirror of
https://github.com/ceph/ceph
synced 2025-04-01 00:26:47 +00:00
librados: simplify locking slightly
No reason to hold mylock_all here. Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
199397dc96
commit
fe4c658bd3
@ -1450,17 +1450,16 @@ int librados::IoCtxImpl::notify(const object_t& oid, uint64_t ver, bufferlist& b
|
||||
0, onack, NULL, &objver);
|
||||
lock->Unlock();
|
||||
|
||||
mylock_all.Lock();
|
||||
mylock.Lock();
|
||||
while (!done)
|
||||
cond.Wait(mylock);
|
||||
mylock.Unlock();
|
||||
|
||||
mylock_all.Lock();
|
||||
if (r == 0) {
|
||||
while (!done_all)
|
||||
cond_all.Wait(mylock_all);
|
||||
}
|
||||
|
||||
mylock_all.Unlock();
|
||||
|
||||
lock->Lock();
|
||||
|
Loading…
Reference in New Issue
Block a user