Whamcloud - gitweb
b=1505
authorphil <phil>
Thu, 7 Aug 2003 18:14:02 +0000 (18:14 +0000)
committerphil <phil>
Thu, 7 Aug 2003 18:14:02 +0000 (18:14 +0000)
r=shaver
- Remove confusing and uninteresting "lustre_commitd quitting" message
- downgrade the -ENOTCONN "processing error" message to D_HA from D_ERROR

lustre/ldlm/ldlm_lib.c

index 55a00d2..c2d500f 100644 (file)
@@ -823,12 +823,15 @@ void target_send_reply(struct ptlrpc_request *req, int rc, int fail_id)
         }
 
         if (!OBD_FAIL_CHECK(fail_id | OBD_FAIL_ONCE)) {
-                if (rc) {
-                        DEBUG_REQ(D_ERROR, req, "processing error (%d)", rc);
-                        netrc = ptlrpc_error(req);
-                } else {
+                if (rc == 0) {
                         DEBUG_REQ(D_NET, req, "sending reply");
                         netrc = ptlrpc_reply(req);
+                } else if (rc == -ENOTCONN) {
+                        DEBUG_REQ(D_HA, req, "processing error (%d)", rc);
+                        netrc = ptlrpc_error(req);
+                } else {
+                        DEBUG_REQ(D_ERROR, req, "processing error (%d)", rc);
+                        netrc = ptlrpc_error(req);
                 }
         } else {
                 obd_fail_loc |= OBD_FAIL_ONCE | OBD_FAILED;