From df2d9d26c876d0360ee6cfc46f2187bfcc7da6e7 Mon Sep 17 00:00:00 2001 From: Mohit Agrawal Date: Fri, 6 Oct 2017 15:13:02 +0530 Subject: cluster/dht: Serialize mds update code path with lookup unwind in selfheal Problem: Sometime test case ./tests/bugs/bug-1371806_1.t is failing on centos due to race condition between fresh lookup and setxattr fop. Solution: In selfheal code path we do save mds on inode_ctx, it was not serialize with lookup unwind. Due to this behavior after lookup unwind if mds is not saved on inode_ctx and if any subsequent setxattr fop call it has failed with ENOENT because no mds has found on inode ctx.To resolve it save mds on inode ctx has been serialize with lookup unwind. BUG: 1498966 Change-Id: I8d4bb40a6cbf0cec35d181ec0095cc7142b02e29 Signed-off-by: Mohit Agrawal --- tests/bugs/bug-1371806_1.t | 2 -- 1 file changed, 2 deletions(-) (limited to 'tests') diff --git a/tests/bugs/bug-1371806_1.t b/tests/bugs/bug-1371806_1.t index ef6a3798d25..df19a8c1c2a 100644 --- a/tests/bugs/bug-1371806_1.t +++ b/tests/bugs/bug-1371806_1.t @@ -46,5 +46,3 @@ EXPECT "abc" get_getfattr ./tmp{1..10} cd - cleanup -#G_TESTDEF_TEST_STATUS_CENTOS6=BAD_TEST,BUG=000000 -#G_TESTDEF_TEST_STATUS_NETBSD7=BAD_TEST,BUG=000000 -- cgit