diff options
| author | Dave Hansen <haveblue@us.ibm.com> | 2002-04-02 18:58:29 -0800 |
|---|---|---|
| committer | Dave Jones <davej@suse.de> | 2002-04-02 18:58:29 -0800 |
| commit | 4e413ec6ddfe6c2514c3454c58f45142ce1c9d63 (patch) | |
| tree | 6971bd2b135127a2bfdfeff70e619e6131708229 /ipc/sem.c | |
| parent | 8cceac248d17302bffec61f3468fb19f262626f1 (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.c | 4 |
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 |
