[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)
commitbafe00cc9297ca77b66e5c83e5e65e17c0c997c8
treec0478b45a084464c515a3201b109d7589773670b
parent71601e2b33dad9acb8d7844f7321f90ed9d1bce8
[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