mirror of
https://github.com/ceph/ceph
synced 2025-01-03 17:42:36 +00:00
mds: locking. Compare iterator to right list!
This commit is contained in:
parent
c0eccba39b
commit
eb669ad2f1
@ -783,7 +783,7 @@ private:
|
||||
bool cont = iter != waiting_locks.end();
|
||||
while(cont) {
|
||||
if (share_space(iter, lock)) overlaps.push_front(iter);
|
||||
if (held_locks.begin() == iter) cont = false;
|
||||
if (waiting_locks.begin() == iter) cont = false;
|
||||
--iter;
|
||||
}
|
||||
return !overlaps.empty();
|
||||
|
Loading…
Reference in New Issue
Block a user