[PATCH] Fix semundo lock leakage
authorIngo Molnar <mingo@elte.hu>
Fri, 5 Aug 2005 21:05:27 +0000 (23:05 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 5 Aug 2005 22:56:41 +0000 (15:56 -0700)
semundo->lock can leak if semundo->refcount goes from 2 to 1 while
another thread has it locked.  This causes major problems for PREEMPT
kernels.

The simplest fix for now is to undo the single-thread optimization.

This bug was found via relentless testing by Dominik Karall.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

No differences found