From: phil Date: Sun, 27 Jun 2004 16:26:27 +0000 (+0000) Subject: b=3652 X-Git-Tag: 1.3.4~654 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=40f5bbd0594f3211daa7c0a441ac9f05e21219e8;p=fs%2Flustre-release.git b=3652 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. --- diff --git a/lustre/ptlrpc/recov_thread.c b/lustre/ptlrpc/recov_thread.c index 1dc989b..305789f 100644 --- a/lustre/ptlrpc/recov_thread.c +++ b/lustre/ptlrpc/recov_thread.c @@ -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. */