aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/cpqphp_ctrl.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-04-29 13:16:38 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-29 13:16:38 -0400
commit8f45c1a58a25c3a1a2f42521445e1e786c4c0b92 (patch)
treef3557e803eb0b31fba027fe22c0afe1dfa3c6d4f /drivers/pci/hotplug/cpqphp_ctrl.c
parent25a025863e024f6b86b48137b10b4960c50351b0 (diff)
block: fix queue locking verification
The new queue_flag_set/clear() functions verify that the queue is locked, but in doing so they will actually instead oops if the queue lock hasn't been initialized at all. So fix the lock debug test to consider the "no lock" case to be unlocked. This way you get a nice WARN_ON_ONCE() instead of a fatal oops. Bug introduced by commit 75ad23bc0fcb4f992a5d06982bf0857ab1738e9e ("block: make queue flags non-atomic"). Cc: Jens Axboe <jens.axboe@oracle.com> Cc: Nick Piggin <npiggin@suse.de> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/pci/hotplug/cpqphp_ctrl.c')
0 files changed, 0 insertions, 0 deletions