Whamcloud - gitweb
b=21448 send recovery rpc ASAP
authorJohann Lombardi <johann@sun.com>
Fri, 22 Jan 2010 21:16:02 +0000 (22:16 +0100)
committerJohann Lombardi <johann@sun.com>
Fri, 22 Jan 2010 21:16:02 +0000 (22:16 +0100)
i=robert.read
i=tappro

lustre/ptlrpc/ptlrpcd.c

index dde226c..0bcc528 100644 (file)
@@ -117,7 +117,13 @@ int ptlrpcd_add_req(struct ptlrpc_request *req)
                 ptlrpc_req_interpret(req, -EBADR);
                 req->rq_set = NULL;
                 ptlrpc_req_finished(req);
+        } else if (req->rq_send_state == LUSTRE_IMP_CONNECTING) {
+               /*
+                * The request is for recovery, should be sent ASAP.
+                */
+               cfs_waitq_signal(&pc->pc_set->set_waitq);
         }
+
         return rc;
 }