Whamcloud - gitweb
LU-4420 fld: retry fld rpc even for ESHUTDOWN
[fs/lustre-release.git] / lustre / fld / fld_request.c
index 806a090..4b402cb 100644 (file)
@@ -436,12 +436,12 @@ again:
        rc = ptlrpc_queue_wait(req);
        obd_put_request_slot(&exp->exp_obd->u.cli);
        if (rc != 0) {
-               if (rc == -EWOULDBLOCK) {
-                       /* For no_delay req(see above), EWOULDBLOCK means the
-                        * connection is being evicted, but this seq lookup
-                        * should not return error, since it would cause
-                        * unecessary failure of the application, instead
-                        * it should retry here */
+               if (rc == -EWOULDBLOCK || rc == -ESHUTDOWN) {
+                       /* For no_delay req(see above), EWOULDBLOCK and
+                        * ESHUTDOWN means the connection is being evicted,
+                        * but this seq lookup should not return error,
+                        * since it would cause unecessary failure of the
+                        * application, instead it should retry here */
                        ptlrpc_req_finished(req);
                        rc = 0;
                        goto again;