diff options
author | Christoph Hellwig <hch@lst.de> | 2017-06-16 18:15:26 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-06-18 10:08:55 -0600 |
commit | 5bbf4e5a8e3a780874b2ed77bd1bd57850f3f6da (patch) | |
tree | 06835c621f167a8cc563d57a6d6e29d127078967 /drivers/lightnvm/rrpc.c | |
parent | 44e8c2bff80bb384a608406009948f90a78bf8a3 (diff) | |
download | linux-5bbf4e5a8e3a780874b2ed77bd1bd57850f3f6da.tar.gz linux-5bbf4e5a8e3a780874b2ed77bd1bd57850f3f6da.tar.bz2 linux-5bbf4e5a8e3a780874b2ed77bd1bd57850f3f6da.zip |
blk-mq-sched: unify request prepare methods
This patch makes sure we always allocate requests in the core blk-mq
code and use a common prepare_request method to initialize them for
both mq I/O schedulers. For Kyber and additional limit_depth method
is added that is called before allocating the request.
Also because none of the intializations can really fail the new method
does not return an error - instead the bfq finish method is hardened
to deal with the no-IOC case.
Last but not least this removes the abuse of RQF_QUEUE by the blk-mq
scheduling code as RQF_ELFPRIV is all that is needed now.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/lightnvm/rrpc.c')
0 files changed, 0 insertions, 0 deletions