Commit a66f6375 authored by David Howells's avatar David Howells Committed by Linus Torvalds
Browse files

Fix the x86_64 implementation of call_rwsem_wait()

The x86_64 call_rwsem_wait() treats the active state counter part of the
R/W semaphore state as being 16-bit when it's actually 32-bit (it's half
of the 64-bit state).  It should do "decl %edx" not "decw %dx".
Signed-off-by: default avatarDavid Howells <>
Signed-off-by: default avatarLinus Torvalds <>
parent c81406d6
......@@ -60,7 +60,7 @@ ENTRY(call_rwsem_down_write_failed)
decw %dx /* do nothing if still outstanding active readers */
decl %edx /* do nothing if still outstanding active readers */
jnz 1f
movq %rax,%rdi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment