[libos] Fix the iterator index when unlock range lock

This commit is contained in:
LI Qing 2022-10-13 16:31:27 +08:00 committed by volcano
parent 115b827f68
commit f71e940cfd

@ -315,7 +315,8 @@ impl RangeLockList {
.skip(skipped)
.position(|lk| lk.owner() == lock.owner())
{
Some(idx) => idx,
// (idx + skipped) is the original position in list
Some(idx) => idx + skipped,
None => break,
};