diff options
author | Bart Van Assche <bart.vanassche@wdc.com> | 2017-06-21 10:55:47 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-06-21 12:01:15 -0600 |
commit | 852ec80983d682dc08a0573d37eeaa9814c4f6b1 (patch) | |
tree | a28ce236f89bd4c8e05a16e5869f3702ba914ea4 /include/linux/blk-mq.h | |
parent | 34bd9c1c4f62e936d8865e6442f332cd85bdfc95 (diff) | |
download | linux-852ec80983d682dc08a0573d37eeaa9814c4f6b1.tar.gz linux-852ec80983d682dc08a0573d37eeaa9814c4f6b1.tar.bz2 linux-852ec80983d682dc08a0573d37eeaa9814c4f6b1.zip |
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>
Diffstat (limited to 'include/linux/blk-mq.h')
-rw-r--r-- | include/linux/blk-mq.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index 366b83cee955..23d32ff0b462 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h @@ -266,15 +266,7 @@ int blk_mq_reinit_tagset(struct blk_mq_tag_set *set); int blk_mq_map_queues(struct blk_mq_tag_set *set); void blk_mq_update_nr_hw_queues(struct blk_mq_tag_set *set, int nr_hw_queues); -/* - * FIXME: this helper is just for working around mpt3sas. - */ -static inline void blk_mq_quiesce_queue_nowait(struct request_queue *q) -{ - spin_lock_irq(q->queue_lock); - queue_flag_set(QUEUE_FLAG_QUIESCED, q); - spin_unlock_irq(q->queue_lock); -} +void blk_mq_quiesce_queue_nowait(struct request_queue *q); /* * Driver command data is immediately after the request. So subtract request |