Whamcloud - gitweb
Quiet some well-known error messages.
authoradilger <adilger>
Fri, 12 Sep 2003 06:56:59 +0000 (06:56 +0000)
committeradilger <adilger>
Fri, 12 Sep 2003 06:56:59 +0000 (06:56 +0000)
lustre/ldlm/ldlm_lib.c
lustre/llite/commit_callback.c
lustre/mds/handler.c
lustre/ptlrpc/events.c

index e3f8673..d148fc3 100644 (file)
@@ -821,12 +821,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;
index ee49bb8..99fc285 100644 (file)
@@ -83,7 +83,6 @@ static int ll_commitcbd_main(void *arg)
                 spin_lock(&sbi->ll_commitcbd_lock);
                 if (sbi->ll_commitcbd_flags & LL_COMMITCBD_STOPPING) {
                         spin_unlock(&sbi->ll_commitcbd_lock);
-                        CERROR("lustre_commitd quitting\n");
                         EXIT;
                         break;
                 }
index cbcfdae..b90bdc1 100644 (file)
@@ -1566,9 +1566,7 @@ static int mds_setup(struct obd_device *obd, obd_count len, void *buf)
         ENTRY;
 
 
-#ifdef CONFIG_DEV_RDONLY
         dev_clear_rdonly(2);
-#endif
         if (!data->ioc_inlbuf1 || !data->ioc_inlbuf2)
                 RETURN(rc = -EINVAL);
 
@@ -1696,9 +1694,7 @@ static int mds_cleanup(struct obd_device *obd, int flags)
         if (obd->obd_recovering)
                 target_cancel_recovery_timer(obd);
         lock_kernel();
-#ifdef CONFIG_DEV_RDONLY
         dev_clear_rdonly(2);
-#endif
         fsfilt_put_ops(obd->obd_fsops);
 
         RETURN(0);
@@ -1854,9 +1850,9 @@ static int ldlm_intent_policy(struct ldlm_namespace *ns,
                  * have one reader _or_ writer ref (which will be zeroed below
                  * before returning the lock to a client.
                  */
-                if (new_lock->l_export == req->rq_export) {
+                if (new_lock->l_export == req->rq_export)
                         LASSERT(new_lock->l_readers + new_lock->l_writers == 0);
-                else {
+                else {
                         LASSERT(new_lock->l_export == NULL);
                         LASSERT(new_lock->l_readers + new_lock->l_writers == 1);
                 }
index 167898a..25580bf 100644 (file)
@@ -316,10 +316,10 @@ static int bulk_get_sink_callback(ptl_event_t *ev)
         unsigned long            flags;
         ENTRY;
 
-        CDEBUG(D_NET, "got %s event %d\n",
+        CDEBUG(D_NET, "got %s event %d desc %p\n",
                (ev->type == PTL_EVENT_SENT) ? "SENT" :
                (ev->type == PTL_EVENT_REPLY)  ? "REPLY"  : "UNEXPECTED",
-               ev->type);
+               ev->type, desc);
 
         LASSERT(ev->type == PTL_EVENT_SENT || ev->type == PTL_EVENT_REPLY);