summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2019-03-28 17:55:54 +0530
committerShyamsundar Ranganathan <srangana@redhat.com>2019-04-16 10:52:32 +0000
commitfbba6e397f5ce473eddca710d593a6c2b62906d5 (patch)
treea1917e19f1e4ef540e1d002fa62264545c2e08e1 /xlators/cluster/afr
parent74db82dd5d5cd47c59afb99b44a8b3d698c64167 (diff)
protocol/client: Do not fallback to anon-fd if fd is not open
If an open comes on a file when a brick is down and after the brick comes up, a fop comes on the fd, client xlator would still wind the fop on anon-fd leading to wrong behavior of the fops in some cases. Example: If lk fop is issued on the fd just after the brick is up in the scenario above, lk fop will be sent on anon-fd instead of failing it on that client xlator. This lock will never be freed upon close of the fd as flush on anon-fd is invalid and is not wound below server xlator. As a fix, failing the fop unless the fd has FALLBACK_TO_ANON_FD flag. Change-Id: I77692d056660b2858e323bdabdfe0a381807cccc fixes bz#1699198 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> (cherry picked from commit 92ae26ae8039847e38c738ef98835a14be9d4296)
Diffstat (limited to 'xlators/cluster/afr')
0 files changed, 0 insertions, 0 deletions