]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit816a7761897e142efa9a7684906c8d894bffe3f0
treea28ce236f89bd4c8e05a16e5869f3702ba914ea4
parent204a2ff80e2a72e77b26e760376eb209239258a5
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 3175bd36de41 ("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