From: Di Wang Date: Mon, 8 Feb 2016 00:04:25 +0000 (-0500) Subject: LU-7768 fld: Do not retry fld request X-Git-Tag: 2.8.51~32 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=2f66b4903516f93356f1a525f78474af25041353 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 --- 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;