diff options
| author | Ming Lei <ming.lei@redhat.com> | 2025-05-05 17:17:51 +0300 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-05-06 16:43:43 +0300 |
| commit | 596dce110b7d543db727e6957ae7adf35beb0633 (patch) | |
| tree | b5547489aa3c495bd1d613fdf351f2f4e0190013 /include/linux/debugobjects.h | |
| parent | ac55b71a31a7287342e622c6f4de201e54b1c195 (diff) | |
| download | linux-596dce110b7d543db727e6957ae7adf35beb0633.tar.xz | |
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 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
