]> www.infradead.org Git - users/hch/misc.git/commit
block: look up the elevator type in elevator_switch
authorChristoph Hellwig <hch@lst.de>
Mon, 5 May 2025 14:17:48 +0000 (22:17 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 May 2025 13:43:43 +0000 (07:43 -0600)
commita11abb98388e23188f3915780f3a193fdc1e4ff0
tree5b2e26804d432f63cacacf792543626c2ca9d162
parentb126d9d7475e3a35155f31418e54d9221b971ca1
block: look up the elevator type in elevator_switch

That makes the function nicely self-contained and can be used
to avoid code duplication.

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