diff options
author | Ming Lin <ming.l@ssi.samsung.com> | 2016-06-13 16:45:21 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-07-05 11:28:07 -0600 |
commit | 1f5bd336b9150560458b03460cbcfcfbcf8995b1 (patch) | |
tree | 92fd38e4125cb0d032acce9f7abfb2d6b0538ab7 /include/linux/blk-mq.h | |
parent | 9e2d23f19ef6e8a08348c8f59f79805c6cb25fe6 (diff) | |
download | linux-1f5bd336b9150560458b03460cbcfcfbcf8995b1.tar.gz linux-1f5bd336b9150560458b03460cbcfcfbcf8995b1.tar.bz2 linux-1f5bd336b9150560458b03460cbcfcfbcf8995b1.zip |
blk-mq: add blk_mq_alloc_request_hctx
For some protocols like NVMe over Fabrics we need to be able to send
initialization commands to a specific queue.
Based on an earlier patch from Christoph Hellwig <hch@lst.de>.
Signed-off-by: Ming Lin <ming.l@ssi.samsung.com>
[hch: disallow sleeping allocation, req_op fixes]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/blk-mq.h')
-rw-r--r-- | include/linux/blk-mq.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index 2498fdf3a503..cbfd8ca5f13e 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h @@ -196,6 +196,8 @@ enum { struct request *blk_mq_alloc_request(struct request_queue *q, int rw, unsigned int flags); +struct request *blk_mq_alloc_request_hctx(struct request_queue *q, int op, + unsigned int flags, unsigned int hctx_idx); struct request *blk_mq_tag_to_rq(struct blk_mq_tags *tags, unsigned int tag); struct cpumask *blk_mq_tags_cpumask(struct blk_mq_tags *tags); |