blk-mq: move queue_is_mq out of blk_mq_cancel_work_sync
authorJinlong Chen <nickyc975@zju.edu.cn>
Sun, 30 Oct 2022 09:47:30 +0000 (17:47 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 31 Oct 2022 13:27:54 +0000 (07:27 -0600)
commit219cf43c552a49a7710b7b341bf616682a2643f0
tree9cf3a60ad707fa48f7ee4009db1bcdd76135f216
parentadff215830fcf3ef74f2f0d4dd5a47a6927d450b
blk-mq: move queue_is_mq out of blk_mq_cancel_work_sync

The only caller that needs queue_is_mq check is del_gendisk, so move the
check into it.

Signed-off-by: Jinlong Chen <nickyc975@zju.edu.cn>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20221030094730.1275463-1-nickyc975@zju.edu.cn
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
block/genhd.c