]> www.infradead.org Git - users/hch/misc.git/commit
block: don't call freeze queue in elevator_switch() and elevator_disable()
authorMing Lei <ming.lei@redhat.com>
Mon, 5 May 2025 14:17:41 +0000 (22:17 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 May 2025 13:43:42 +0000 (07:43 -0600)
commitf8e111c859b92ee909f1676f90c791e7165d3860
tree14b518293f4f274d2412a47c2af17111c69d6164
parent56dee46ff47f0ef9944dddd1fd137c94b7c2d9de
block: don't call freeze queue in elevator_switch() and elevator_disable()

Both elevator_switch() and elevator_disable() are only called from the
two code paths, in which queue is guaranteed to be frozen.

So don't call freeze queue in the two functions, also add asserts for
queue freeze.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Nilay Shroff <nilay@linux.ibm.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20250505141805.2751237-4-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/elevator.c