summaryrefslogtreecommitdiffstats
path: root/cli/src/cli-xml-output.c
diff options
context:
space:
mode:
authorRavishankar N <ravishankar@redhat.com>2018-07-17 20:35:42 +0530
committerShyamsundar Ranganathan <srangana@redhat.com>2018-07-23 23:42:15 +0000
commita8156e843e651be7c18e9e24d08116f752227a35 (patch)
tree2d821ff14ff05ab0394bd6e137545f3cf76387fe /cli/src/cli-xml-output.c
parentd720904046cd665977dcd312e49bc3908568859b (diff)
afr: switch lk_owner only when pre-op succeeds
Problem: In a disk full scenario, we take a failure path in afr_transaction_perform_fop() and go to unlock phase. But we change the lk-owner before that, causing unlock to fail. When mount issues another fop that takes locks on that file, it hangs. Fix: Change lk-owner only when we are about to perform the fop phase. Also fix the same issue for arbiters when afr_txn_arbitrate_fop() fails the fop. Also removed the DISK_SPACE_CHECK_AND_GOTO in posix_xattrop. Otherwise truncate to zero will fail pre-op phase with ENOSPC when the user is actually trying to freee up space. Change-Id: Ic4c8a596b4cdf4a7fc189bf00b561113cf114353 fixes: bz#1603056 Signed-off-by: Ravishankar N <ravishankar@redhat.com> (cherry picked from commit ec0d7d77de3e4bd485a4fa2e53c9137e25c71ce7)
Diffstat (limited to 'cli/src/cli-xml-output.c')
0 files changed, 0 insertions, 0 deletions