]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: update nr_requests when switching to 'none' scheduler
authorMing Lei <ming.lei@redhat.com>
Sat, 2 Jun 2018 07:18:09 +0000 (15:18 +0800)
committerJens Axboe <axboe@kernel.dk>
Sun, 3 Jun 2018 02:35:00 +0000 (20:35 -0600)
commit3122b2f29c5d77dc76aa86526cab47daebd81f61
tree89553605d21f60fb213d20b5137bb19169bc333f
parent02a33a25951154d9aab3ecbed698abb835acdff2
blk-mq: update nr_requests when switching to 'none' scheduler

Now we setup q->nr_requests when switching to one new scheduler,
but not do it for 'none', then q->nr_requests may not be correct
for 'none'.

This patch fixes this issue by always updating 'nr_requests' when
switching to 'none'.

Cc: Marco Patalano <mpatalan@redhat.com>
Cc: "Ewan D. Milne" <emilne@redhat.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-sched.c