block: don't quiesce queue for calling elevator_set_none()
authorMing Lei <ming.lei@redhat.com>
Thu, 8 May 2025 08:58:04 +0000 (16:58 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 8 May 2025 15:03:44 +0000 (09:03 -0600)
commit8336d18c6b57a603aaa4db76bbf4f8cb08acfa5e
tree145bf6cfeb3b94c59a8ac50b2c568219d3cfceaf
parent037af793557ed192b2c10cf2379ac97abacedf55
block: don't quiesce queue for calling elevator_set_none()

blk_mq_freeze_queue() can't be called on quiesced queue, otherwise it may
never return if there is any queued requests.

Fix it by removing quiesce queue around elevator_set_none() because
elevator_switch() does quiesce queue in case that we need to switch
to none really.

Fixes: 1e44bedbc921 ("block: unifying elevator change")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Nilay Shroff <nilay@linux.ibm.com>
Link: https://lore.kernel.org/r/20250508085807.3175112-2-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-sysfs.c