[PATCH] Fix memory ordering problem in wake_futex()
authorAndrew Morton <akpm@osdl.org>
Sat, 24 Dec 2005 03:54:46 +0000 (19:54 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 24 Dec 2005 20:13:27 +0000 (12:13 -0800)
commit8e31108b9f41069d55cb9b019ac8262c55fd2616
tree4d3b74956402b978417ee1026fa18409773cd72e
parent6003a93e7bf6c02f33c02976ff364785d4273295
[PATCH] Fix memory ordering problem in wake_futex()

Fix a memory ordering problem that occurs on IA64. The "store" to q->lock_ptr
in wake_futex() can become visible before wake_up_all() clears the lock in the
futex_q.

Signed-off-by: Jack Steiner <steiner@sgi.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/futex.c