summaryrefslogtreecommitdiffstats
path: root/tests/bugs/ec/bug-1708156-honor-inodelk-contention-notify-on-partial-locks.t
Commit message (Collapse)AuthorAgeFilesLines
* cluster/ec: honor contention notifications for partially acquired locksXavi Hernandez2019-05-251-0/+54
EC was ignoring lock contention notifications received while a lock was being acquired. When a lock is partially acquired (some bricks have granted the lock but some others not yet) we can receive notifications from acquired bricks, which should be honored, since we may not receive more notifications after that. Since EC was ignoring them, once the lock was acquired, it was not released until the eager-lock timeout, causing unnecessary delays on other clients. This fix takes into consideration the notifications received before having completed the full lock acquisition. After that, the lock will be releaed as soon as possible. Fixes: bz#1708156 Change-Id: I2a306dbdb29fb557dcab7788a258bd75d826cc12 Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>