]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdfc3a936b373e7cb5cb0c9214e99d0ea22b644af
tree2ff2d5af758f0185f486bcdc0645986a4a9b204a
parent09b807ba33b1b85040f5766eccb4c7fd0daaf2cc
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