]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] s390: fix in-user atomic futex operation.
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 8 Jun 2006 08:36:20 +0000 (01:36 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 8 Jun 2006 22:15:30 +0000 (15:15 -0700)
commit5b1ee4067ec5dcce4d859f6413cb53e5c9ebafc3
treec0478b45a084464c515a3201b109d7589773670b
parent9a9dec6aee15087d0dbea4618fb5208f95c0931e
[PATCH] s390: fix in-user atomic futex operation.

From: Martin Schwidefsky <schwidefsky@de.ibm.com>

__futex_atomic_op needs to do an atomic operation in the user address space,
not the kernel address space.  Add the missing sacf 256/sacf 0 to switch to
the secondary mode before doing the compare-and-swap.  In addition add
another fixup for catch specification exceptions if the compare-and-swap
address is not aligned.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-s390/futex.h