diff options
author | Raghavendra G <rgowdapp@redhat.com> | 2015-05-28 16:03:12 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2015-06-02 22:33:00 -0700 |
commit | b6eda067d2e2a0b56718ea71522f6c7b06a09f13 (patch) | |
tree | 82f5909c06abb4fdbb99d11d3fbe3eefea7b8f2c /tests/bugs | |
parent | b7842d178a6019bc2c14ecaf18ae5438a46bda29 (diff) |
cluster/dht: pass a destination subvol to fop2 variants to avoid races.
The destination subvol used in the fop2 variants is either stored in
inode-ctx1 or local->cached_subvol. However, it is not guaranteed that
a value stored in these locations before invocation of fop2 is still
present after the invocation as these locations are shared among
different concurrent operations. So, to preserve the atomicity of
"check dst-subvol and invoke fop2 variant if dst-subvol found", we
pass down the dst-subvol to fop2 variant.
This patch also fixes error handling in some fop2 variants.
Change-Id: Icc226228a246d3f223e3463519736c4495b364d2
BUG: 1142423
Signed-off-by: Raghavendra G <rgowdapp@redhat.com>
Reviewed-on: http://review.gluster.org/10943
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: N Balachandran <nbalacha@redhat.com>
Diffstat (limited to 'tests/bugs')
-rwxr-xr-x[-rw-r--r--] | tests/bugs/quick-read/bug-846240.t | 0 |
1 files changed, 0 insertions, 0 deletions
diff --git a/tests/bugs/quick-read/bug-846240.t b/tests/bugs/quick-read/bug-846240.t index c47040de1d1..c47040de1d1 100644..100755 --- a/tests/bugs/quick-read/bug-846240.t +++ b/tests/bugs/quick-read/bug-846240.t |