https://github.com/torvalds/linux
Revision 50952026036c7b4212b90091bf23a264c0ccc1fb authored by Ralf Baechle on 03 July 2008, 22:28:35 UTC, committed by Ralf Baechle on 04 July 2008, 07:22:15 UTC
The branch optimization fixes in 2.6.21 introduced a bug in
atomic_sub_if_positive that causes it to return even when the sc
instruction fails. The result is that e.g. down_trylock becomes unreliable
as the semaphore counter is not always decremented.

Original MUA-shredded patch from Morten Larsen <mlarsen@broadcom.com>.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent bf9127c
History
Tip revision: 50952026036c7b4212b90091bf23a264c0ccc1fb authored by Ralf Baechle on 03 July 2008, 22:28:35 UTC
[MIPS] Fix bug in atomic_sub_if_positive.
Tip revision: 5095202
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
usr
virt
.gitignore -rw-r--r-- 867 bytes
.mailmap -rw-r--r-- 3.6 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 90.5 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 98.3 KB
Makefile -rw-r--r-- 53.8 KB
README -rw-r--r-- 16.5 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top