From: John L. Hammond Date: Mon, 28 Jul 2014 14:31:36 +0000 (-0500) Subject: LU-5414 mdt: avoid shrinking reply buffers on error X-Git-Tag: 2.6.51~24 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=6b7e6cdd4896249ace1edf2633b4347a9cc21c52;p=fs%2Flustre-release.git LU-5414 mdt: avoid shrinking reply buffers on error 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 Change-Id: I234ed3044c426e34cf35575eb26f7f961b03c0bd Reviewed-on: http://review.whamcloud.com/11247 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Fan Yong Reviewed-by: Mike Pershin Reviewed-by: Oleg Drokin --- diff --git a/lustre/mdt/mdt_handler.c b/lustre/mdt/mdt_handler.c index 24339a9..a03a996 100644 --- a/lustre/mdt/mdt_handler.c +++ b/lustre/mdt/mdt_handler.c @@ -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);