Whamcloud - gitweb
LU-3669 mdt: getxattr intent should check object existence 91/7191/3
authorAndrew Perepechko <andrew_perepechko@xyratex.com>
Wed, 31 Jul 2013 11:53:36 +0000 (15:53 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 10 Aug 2013 04:03:27 +0000 (04:03 +0000)
Make getxattr intent use HABEO_CORPUS similar to
REINT_GETXATTR to avoid crashes on race conditions.

Signed-off-by: Andrew Perepechko <andrew_perepechko@xyratex.com>
Change-Id: Ic277525152847118fbe95fcc73448945acba699d
Reviewed-on: http://review.whamcloud.com/7191
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lustre/mdt/mdt_handler.c

index 4ceb146..c9dee86 100644 (file)
@@ -3575,7 +3575,7 @@ static struct mdt_it_flavor {
         },
         [MDT_IT_GETXATTR] = {
                .it_fmt   = &RQF_LDLM_INTENT_GETXATTR,
-                .it_flags = 0,
+               .it_flags = HABEO_CORPUS,
                .it_act   = mdt_intent_getxattr
         },
        [MDT_IT_LAYOUT] = {