From 2f66b4903516f93356f1a525f78474af25041353 Mon Sep 17 00:00:00 2001 From: Di Wang Date: Sun, 7 Feb 2016 19:04:25 -0500 Subject: [PATCH] LU-7768 fld: Do not retry fld request Do not retry fld request if the remote target does not support FLD_READ request. Signed-off-by: Di Wang Change-Id: I02c6185cceb4aed6a9cd6b4853eb7423296bb1d2 Reviewed-on: http://review.whamcloud.com/18382 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Mike Pershin Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- lustre/fld/fld_request.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lustre/fld/fld_request.c b/lustre/fld/fld_request.c index 9354922..1999dac 100644 --- a/lustre/fld/fld_request.c +++ b/lustre/fld/fld_request.c @@ -425,10 +425,15 @@ again: } if (rc != 0) { - if (imp->imp_state != LUSTRE_IMP_CLOSED && !imp->imp_deactive) { + if (imp->imp_state != LUSTRE_IMP_CLOSED && + !imp->imp_deactive && + imp->imp_connect_flags_orig & OBD_CONNECT_MDS_MDS && + rc != -ENOTSUPP) { /* Since LWP is not replayable, so it will keep - * trying unless umount happens, otherwise it would - * cause unecessary failure of the application. */ + * trying unless umount happens or the remote + * target does not support the operation, otherwise + * it would cause unecessary failure of the + * application. */ ptlrpc_req_finished(req); rc = 0; goto again; -- 1.8.3.1