Whamcloud - gitweb
b=19128
authorgreen <green>
Wed, 4 Nov 2009 04:16:16 +0000 (04:16 +0000)
committergreen <green>
Wed, 4 Nov 2009 04:16:16 +0000 (04:16 +0000)
r=adilger,tappro,rread

Properly add a request to the start of a replay list if there are no
requests with smaller tid in the list already.

lustre/ChangeLog
lustre/ptlrpc/client.c

index 7015c62..b901507 100644 (file)
@@ -205,6 +205,13 @@ Description: Slow stale export processing during normal start up
 Details    : The global mgc lock prevents OST setup to be run in parallel.
             Replace the global lock with a per-config_llog_data semaphore.
 
+Severity   : normal
+Bugzilla   : 19128
+Description: Out or order replies might be lost on replay
+Details    : In ptlrpc_retain_replayable_request if we cannot find retained
+             request with tid smaller then one currently being added, add it
+            to the start, not end of the list.
+
 -------------------------------------------------------------------------------
 2009-10-16 Sun Microsystems, Inc.
        * version 1.8.1.1
index 6722ba4..c9dba2f 100644 (file)
@@ -2002,7 +2002,7 @@ void ptlrpc_retain_replayable_request(struct ptlrpc_request *req,
                 return;
         }
 
-        list_add_tail(&req->rq_replay_list, &imp->imp_replay_list);
+        list_add(&req->rq_replay_list, &imp->imp_replay_list);
 }
 
 int ptlrpc_queue_wait(struct ptlrpc_request *req)