Whamcloud - gitweb
LU-7768 fld: Do not retry fld request 82/18382/2
authorDi Wang <di.wang@intel.com>
Mon, 8 Feb 2016 00:04:25 +0000 (19:04 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 14 Mar 2016 02:42:28 +0000 (02:42 +0000)
Do not retry fld request if the remote target does
not support FLD_READ request.

Signed-off-by: Di Wang <di.wang@intel.com>
Change-Id: I02c6185cceb4aed6a9cd6b4853eb7423296bb1d2
Reviewed-on: http://review.whamcloud.com/18382
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/fld/fld_request.c

index 9354922..1999dac 100644 (file)
@@ -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;