Whamcloud - gitweb
b=3063
authoralex <alex>
Wed, 16 Jun 2004 06:38:18 +0000 (06:38 +0000)
committeralex <alex>
Wed, 16 Jun 2004 06:38:18 +0000 (06:38 +0000)
- 2nd patch of the bug landed

lustre/ptlrpc/client.c

index 9ef1d1d..5481a8f 100644 (file)
@@ -658,6 +658,8 @@ int ptlrpc_check_set(struct ptlrpc_request_set *set)
                         if (req->rq_waiting || req->rq_resend) {
                                 int status;
 
+                                ptlrpc_unregister_reply(req);
+
                                 spin_lock_irqsave(&imp->imp_lock, flags);
 
                                 if (ptlrpc_import_delay_req(imp, req, &status)){
@@ -690,7 +692,6 @@ int ptlrpc_check_set(struct ptlrpc_request_set *set)
                                 if (req->rq_resend) {
                                         lustre_msg_add_flags(req->rq_reqmsg,
                                                              MSG_RESENT);
-                                        ptlrpc_unregister_reply(req);
                                         if (req->rq_bulk) {
                                                 __u64 old_xid = req->rq_xid;