diff options
author | Xavi Hernandez <xhernandez@redhat.com> | 2019-05-09 11:07:18 +0200 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2019-06-03 04:08:06 +0000 |
commit | 7a387f97315f55e1c741d6ad749fb5621f067de0 (patch) | |
tree | 9556c96c5415815d1de1eaebb892b89276b09897 /tests/basic/fops-sanity.t | |
parent | 8c0bb45c9f002461d5c4a63e35ae215958405fb5 (diff) |
cluster/ec: honor contention notifications for partially acquired locks
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.
Backport of:
> BUG: bz#1708156
> Change-Id: I2a306dbdb29fb557dcab7788a258bd75d826cc12
> Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
Fixes: bz#1714172
Change-Id: I2a306dbdb29fb557dcab7788a258bd75d826cc12
Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
Diffstat (limited to 'tests/basic/fops-sanity.t')
0 files changed, 0 insertions, 0 deletions