From b6eda067d2e2a0b56718ea71522f6c7b06a09f13 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Thu, 28 May 2015 16:03:12 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/10943 Tested-by: NetBSD Build System Reviewed-by: N Balachandran --- tests/bugs/quick-read/bug-846240.t | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 tests/bugs/quick-read/bug-846240.t (limited to 'tests/bugs/quick-read') diff --git a/tests/bugs/quick-read/bug-846240.t b/tests/bugs/quick-read/bug-846240.t old mode 100644 new mode 100755 -- cgit