Skip to content
  • Jens Axboe's avatar
    blk-mq: add warning to __blk_mq_run_hw_queue() for ints disabled · b7a71e66
    Jens Axboe authored
    
    
    We recently had a bug in the IPR SCSI driver, where it would end up
    making the SCSI mid layer run the mq hardware queue with interrupts
    disabled. This isn't legal, since the software queue locking relies
    on never being grabbed from interrupt context. Additionally, drivers
    that set BLK_MQ_F_BLOCKING may schedule from this context.
    
    Add a WARN_ON_ONCE() to catch bad users up front.
    
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    b7a71e66