diff options
author | Xavi Hernandez <xhernandez@redhat.com> | 2019-05-09 11:07:18 +0200 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2019-05-25 04:52:34 +0000 |
commit | 4c85456e38b9cc2d9698decca15a21e0cb7961a9 (patch) | |
tree | c1c158ea940f871d3ca4cba46dd0204432fbac6f /xlators/protocol/client/src/client.c | |
parent | f6c0b59725615da10435c40fec0f26dae542de74 (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.
Fixes: bz#1708156
Change-Id: I2a306dbdb29fb557dcab7788a258bd75d826cc12
Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
Diffstat (limited to 'xlators/protocol/client/src/client.c')
0 files changed, 0 insertions, 0 deletions