Whamcloud - gitweb
LU-5414 mdt: avoid shrinking reply buffers on error 47/11247/3
authorJohn L. Hammond <john.hammond@intel.com>
Mon, 28 Jul 2014 14:31:36 +0000 (09:31 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 11 Aug 2014 05:38:53 +0000 (05:38 +0000)
In mdt_getattr() if the LOV xattr size cannot be determined then
return err_serious(rc) and avoid shrinking the nonexistent reply
buffers.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I234ed3044c426e34cf35575eb26f7f961b03c0bd
Reviewed-on: http://review.whamcloud.com/11247
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdt/mdt_handler.c

index 24339a9..a03a996 100644 (file)
@@ -1130,7 +1130,7 @@ static int mdt_getattr(struct tgt_session_info *tsi)
        }
 
        if (rc < 0)
-               GOTO(out_shrink, rc);
+               GOTO(out, rc = err_serious(rc));
 
        req_capsule_set_size(pill, &RMF_MDT_MD, RCL_SERVER, rc);