From 3b70b160a46b22b77a8ad1897440ec1346795a0f Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Wed, 13 Aug 2014 11:11:17 +0530 Subject: cluster/afr: Perform gfid heal inside locks. Problem: Allowing lookup with 'gfid-req' will lead to assigning gfid at posix layer. When two mounts perform lookup in parallel that can lead to both bricks getting different gfids leading to gfid-mismatch/EIO for the lookup. Fix: Perform gfid heal inside lock. BUG: 1129529 Change-Id: I20c6c5e25ee27eeb906bff2f4c8ad0da18d00090 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/8512 Tested-by: Gluster Build System Reviewed-by: Krutika Dhananjay --- xlators/cluster/afr/src/afr.h | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/cluster/afr/src/afr.h') diff --git a/xlators/cluster/afr/src/afr.h b/xlators/cluster/afr/src/afr.h index b02ecaf3050..91eef2bf1b7 100644 --- a/xlators/cluster/afr/src/afr.h +++ b/xlators/cluster/afr/src/afr.h @@ -419,6 +419,7 @@ typedef struct _afr_local { struct { struct { gf_boolean_t needs_fresh_lookup; + uuid_t gfid_req; } lookup; struct { -- cgit