Skip to content
Commit 3eac4aba authored by Kevin Hilman's avatar Kevin Hilman Committed by Linus Torvalds
Browse files

rwsem generic spinlock: use IRQ save/restore spinlocks



rwsems can be used with IRQs disabled, particularily in early boot
before IRQs are enabled.  Currently the spin_unlock_irq() usage in the
slow-patch will unconditionally enable interrupts and cause problems
since interrupts are not yet initialized or enabled.

This patch uses save/restore versions of IRQ spinlocks in the slowpath
to ensure interrupts are not unintentionally disabled.

Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 04287f97
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