aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/workqueue.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2008-07-03 23:28:35 +0100
committerRalf Baechle <ralf@linux-mips.org>2008-07-04 08:22:15 +0100
commit50952026036c7b4212b90091bf23a264c0ccc1fb (patch)
tree50c5865ab0fdc8d4f36a69ddcc86037489a90fa9 /kernel/workqueue.c
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6 (diff)
downloadlinux-rng-50952026036c7b4212b90091bf23a264c0ccc1fb.tar.xz
linux-rng-50952026036c7b4212b90091bf23a264c0ccc1fb.zip
[MIPS] Fix bug in atomic_sub_if_positive.
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>
Diffstat (limited to 'kernel/workqueue.c')
0 files changed, 0 insertions, 0 deletions