summaryrefslogtreecommitdiff
path: root/ipc/sem.c
diff options
context:
space:
mode:
authorDave Hansen <haveblue@us.ibm.com>2002-04-02 18:58:29 -0800
committerDave Jones <davej@suse.de>2002-04-02 18:58:29 -0800
commit4e413ec6ddfe6c2514c3454c58f45142ce1c9d63 (patch)
tree6971bd2b135127a2bfdfeff70e619e6131708229 /ipc/sem.c
parent8cceac248d17302bffec61f3468fb19f262626f1 (diff)
[PATCH] BKL reduction in do_exit
Push BKL down to the (few) routines that actually need it, remove it from the do_exit() path.
Diffstat (limited to 'ipc/sem.c')
-rw-r--r--ipc/sem.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipc/sem.c b/ipc/sem.c
index 1c8d9837082f..90fc3c33c773 100644
--- a/ipc/sem.c
+++ b/ipc/sem.c
@@ -995,6 +995,8 @@ void sem_exit (void)
struct sem_array *sma;
int nsems, i;
+ lock_kernel();
+
/* If the current process was sleeping for a semaphore,
* remove it from the queue.
*/
@@ -1051,6 +1053,8 @@ next_entry:
sem_unlock(semid);
}
current->semundo = NULL;
+
+ unlock_kernel();
}
#ifdef CONFIG_PROC_FS