commit | 32a50fabb334b2f0725de84bf248bd8c24c22b05 | [log] [tgz] |
---|---|---|
author | Ming Lei <ming.lei@redhat.com> | Sat Jun 02 15:18:09 2018 +0800 |
committer | Jens Axboe <axboe@kernel.dk> | Sat Jun 02 20:35:00 2018 -0600 |
tree | 89553605d21f60fb213d20b5137bb19169bc333f | |
parent | cd4a4ae4683dc2e09380118e205e057896dcda2b [diff] |
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>