blk-mq: Make it safe to quiesce and unquiesce from an interrupt handler
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 21 Jun 2017 17:55:47 +0000 (10:55 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 21 Jun 2017 18:01:15 +0000 (12:01 -0600)
commit852ec80983d682dc08a0573d37eeaa9814c4f6b1
treea28ce236f89bd4c8e05a16e5869f3702ba914ea4
parent34bd9c1c4f62e936d8865e6442f332cd85bdfc95
blk-mq: Make it safe to quiesce and unquiesce from an interrupt handler

Since blk_mq_quiesce_queue_nowait() can be called from interrupt
context, make this safe. Since this function is not in the hot
path, uninline it.

Fixes: commit f4560ffe8cec ("blk-mq: use QUEUE_FLAG_QUIESCED to quiesce queue")
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Ming Lei <ming.lei@redhat.com>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
include/linux/blk-mq.h