block: set make_request_fn manually in blk_mq_update_nr_hw_queues
authorJosef Bacik <jbacik@fb.com>
Fri, 10 Feb 2017 18:03:33 +0000 (13:03 -0500)
committerJens Axboe <axboe@fb.com>
Fri, 10 Feb 2017 18:15:01 +0000 (11:15 -0700)
commitf6f94300cda0f85180a0dd8838d1cc855661e239
tree31d095416a52582e9cd9c6f6e4d906f429d65069
parentf1ba82616c3368e1ae9e64ef29cf3edc1be0860d
block: set make_request_fn manually in blk_mq_update_nr_hw_queues

Calling blk_queue_make_request resets a bunch of settings on the
request_queue, but all we really want is to update the make_request_fn,
so do this directly so we don't lose things like the logical and
physical block sizes.

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c