summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2005-03-08 18:25:02 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-03-08 18:25:02 -0800
commit60ba96e546da45d9e22bb04b84971a25684e4d46 (patch)
treeb51503b9d6b1cbaee4578686b8172fe4dc210bd2 /include/linux
parentabe26395fab4014299cbda53cc2615de83ea6835 (diff)
[PATCH] rwsem: Make rwsems use interrupt disabling spinlocks
The attached patch makes read/write semaphores use interrupt disabling spinlocks in the slow path, thus rendering the up functions and trylock functions available for use in interrupt context. This matches the regular semaphore behaviour. I've assumed that the normal down functions must be called with interrupts enabled (since they might schedule), and used the irq-disabling spinlock variants that don't save the flags. Signed-Off-By: David Howells <dhowells@redhat.com> Tested-by: Badari Pulavarty <pbadari@us.ibm.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions