diff options
| author | Ming Lei <ming.lei@redhat.com> | 2025-05-05 22:17:51 +0800 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-05-06 07:43:43 -0600 |
| commit | 596dce110b7d543db727e6957ae7adf35beb0633 (patch) | |
| tree | b5547489aa3c495bd1d613fdf351f2f4e0190013 /scripts | |
| parent | block: move blk_queue_registered() check into elv_iosched_store() (diff) | |
| download | linux-596dce110b7d543db727e6957ae7adf35beb0633.tar.gz linux-596dce110b7d543db727e6957ae7adf35beb0633.zip | |
block: simplify elevator reattachment for updating nr_hw_queues
In blk_mq_update_nr_hw_queues(), nr_hw_queues changes and elevator data
depends on it, and elevator has to be reattached, so call elevator_switch()
to force attachment.
Add elv_update_nr_hw_queues() simply for blk_mq_update_nr_hw_queues() to
reattach elevator, since elevator switch isn't likely when running
blk_mq_update_nr_hw_queues(). This way removes the current switch
none and switch back code.
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Nilay Shroff <nilay@linux.ibm.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250505141805.2751237-14-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
