From 34f585c993d46e5df403bf92710194652a144bf1 Mon Sep 17 00:00:00 2001 From: "Alexander.Zarochentsev" Date: Thu, 20 May 2010 11:33:48 +0400 Subject: [PATCH] b=22827 restore locking for thread->t_flags i=tappro i=robert.read --- lustre/ptlrpc/service.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lustre/ptlrpc/service.c b/lustre/ptlrpc/service.c index a1d1060..e8e93cf 100644 --- a/lustre/ptlrpc/service.c +++ b/lustre/ptlrpc/service.c @@ -2141,16 +2141,14 @@ out: CDEBUG(D_RPCTRACE, "service thread [ %p : %u ] %d exiting: rc %d\n", thread, thread->t_pid, thread->t_id, rc); - if (st.running) { - cfs_spin_lock(&svc->srv_lock); + cfs_spin_lock(&svc->srv_lock); + if (st.running) svc->srv_threads_running--; - cfs_spin_unlock(&svc->srv_lock); - } - thread->t_id = rc; thread->t_flags = SVC_STOPPED; - cfs_waitq_signal(&thread->t_ctl_waitq); + cfs_spin_unlock(&svc->srv_lock); + return rc; } -- 1.8.3.1