}
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;
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;
}
ENTRY;
-#ifdef CONFIG_DEV_RDONLY
dev_clear_rdonly(2);
-#endif
if (!data->ioc_inlbuf1 || !data->ioc_inlbuf2)
RETURN(rc = -EINVAL);
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);
* 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);
}
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);