From 6b7e6cdd4896249ace1edf2633b4347a9cc21c52 Mon Sep 17 00:00:00 2001 From: "John L. Hammond" Date: Mon, 28 Jul 2014 09:31:36 -0500 Subject: [PATCH] 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 --- lustre/mdt/mdt_handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 1.8.3.1