Whamcloud - gitweb
b=3652
authorphil <phil>
Sun, 27 Jun 2004 16:26:27 +0000 (16:26 +0000)
committerphil <phil>
Sun, 27 Jun 2004 16:26:27 +0000 (16:26 +0000)
r=rread
A quick workaround for bug 3652, in which we hold the logging
semaphore across an rpc.  Robert thinks that this file can be cleaned
up substantially, but that this fix is sufficient for CMD.

lustre/ptlrpc/recov_thread.c

index 1dc989b..305789f 100644 (file)
@@ -368,9 +368,9 @@ static int log_commit_thread(void *arg)
                                 ptlrpc_req_finished(request);
                                 continue;
                         }
+                        up(&llcd->llcd_ctxt->loc_sem);
                         rc = ptlrpc_queue_wait(request);
                         ptlrpc_req_finished(request);
-                        up(&llcd->llcd_ctxt->loc_sem);
 
                         /* If the RPC failed, we put this and the remaining
                          * messages onto the resend list for another time. */