blk-mq: allow resize of scheduler requests
authorJens Axboe <axboe@fb.com>
Thu, 19 Jan 2017 17:59:07 +0000 (10:59 -0700)
committerJens Axboe <axboe@fb.com>
Fri, 20 Jan 2017 16:05:53 +0000 (09:05 -0700)
commit70f36b6001bf596eb411c4b302e84c4824ae8730
tree2ff2d5af758f0185f486bcdc0645986a4a9b204a
parent7e79dadce222e06e0c30a77280f3426014bee185
blk-mq: allow resize of scheduler requests

Add support for growing the tags associated with a hardware queue, for
the scheduler tags. Currently we only support resizing within the
limits of the original depth, change that so we can grow it as well by
allocating and replacing the existing scheduler tag set.

This is similar to how we could increase the software queue depth with
the legacy IO stack and schedulers.

Signed-off-by: Jens Axboe <axboe@fb.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
block/blk-mq-tag.c
block/blk-mq-tag.h
block/blk-mq.c