* [PATCH] 2.5.10 BKL not always released in sem_exit()
@ 2002-04-26 3:11 Chris Wright
0 siblings, 0 replies; only message in thread
From: Chris Wright @ 2002-04-26 3:11 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-kernel
Hi Linus,
The patch below fixes sem_exit() so that the BKL is always released.
thanks,
-chris
===== ipc/sem.c 1.5 vs edited =====
--- 1.5/ipc/sem.c Tue Apr 23 17:15:25 2002
+++ edited/ipc/sem.c Thu Apr 25 20:01:02 2002
@@ -1176,8 +1176,10 @@
}
undo_list = current->sysvsem.undo_list;
- if ((undo_list == NULL) || (atomic_read(&undo_list->refcnt) != 1))
+ if ((undo_list == NULL) || (atomic_read(&undo_list->refcnt) != 1)) {
+ unlock_kernel();
return;
+ }
/* There's no need to hold the semundo list lock, as current
* is the last task exiting for this undo list.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-04-26 3:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-26 3:11 [PATCH] 2.5.10 BKL not always released in sem_exit() Chris Wright
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox