• L
    block: fix queue locking verification · 8f45c1a5
    Linus Torvalds 提交于
    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 75ad23bc
    ("block: make queue flags non-atomic").
    
    Cc: Jens Axboe <jens.axboe@oracle.com>
    Cc: Nick Piggin <npiggin@suse.de>
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    8f45c1a5
blkdev.h 27.1 KB