From 473def333a398ff631d530aac75d19bb5eb464a4 Mon Sep 17 00:00:00 2001 From: pschwan Date: Mon, 2 Sep 2002 16:26:21 +0000 Subject: [PATCH] Fix eric's extremely well-spotted locking bug. It's not clear that we even need this lock, but I'll fix it by adding an unlock_kernel until I can ask zach. --- lustre/ldlm/ldlm_test.c | 1 + lustre/llite/commit_callback.c | 1 + lustre/ptlrpc/recovd.c | 1 + lustre/ptlrpc/service.c | 1 + 4 files changed, 4 insertions(+) diff --git a/lustre/ldlm/ldlm_test.c b/lustre/ldlm/ldlm_test.c index 5bd79eb..041f66e 100644 --- a/lustre/ldlm/ldlm_test.c +++ b/lustre/ldlm/ldlm_test.c @@ -436,6 +436,7 @@ static int ldlm_test_main(void *data) spin_unlock_irq(¤t->sigmask_lock); sprintf(current->comm, "ldlm_test"); + spin_unlock(); /* Record that the thread is running */ thread->t_flags |= SVC_RUNNING; diff --git a/lustre/llite/commit_callback.c b/lustre/llite/commit_callback.c index 1f2c288..4a33904 100644 --- a/lustre/llite/commit_callback.c +++ b/lustre/llite/commit_callback.c @@ -63,6 +63,7 @@ static int ll_commitcbd_main(void *arg) spin_unlock_irq(¤t->sigmask_lock); sprintf(current->comm, "lustre_commitcbd"); + spin_unlock(); /* Record that the thread is running */ sbi->ll_commitcbd_waketime = CURRENT_TIME; diff --git a/lustre/ptlrpc/recovd.c b/lustre/ptlrpc/recovd.c index ecbef41..37bcccf 100644 --- a/lustre/ptlrpc/recovd.c +++ b/lustre/ptlrpc/recovd.c @@ -165,6 +165,7 @@ static int recovd_main(void *arg) spin_unlock_irq(¤t->sigmask_lock); sprintf(current->comm, "lustre_recovd"); + spin_unlock(); /* Record that the thread is running */ recovd->recovd_thread = current; diff --git a/lustre/ptlrpc/service.c b/lustre/ptlrpc/service.c index 4b71a4d..285fdee 100644 --- a/lustre/ptlrpc/service.c +++ b/lustre/ptlrpc/service.c @@ -248,6 +248,7 @@ static int ptlrpc_main(void *arg) spin_unlock_irq(¤t->sigmask_lock); sprintf(current->comm, data->name); + spin_unlock(); /* Record that the thread is running */ thread->t_flags = SVC_RUNNING; -- 1.8.3.1