summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMing Lin <ming.l@ssi.samsung.com>2016-06-13 14:45:21 (GMT)
committerJens Axboe <axboe@fb.com>2016-07-05 17:28:07 (GMT)
commit1f5bd336b9150560458b03460cbcfcfbcf8995b1 (patch)
tree92fd38e4125cb0d032acce9f7abfb2d6b0538ab7 /include
parent9e2d23f19ef6e8a08348c8f59f79805c6cb25fe6 (diff)
downloadlinux-1f5bd336b9150560458b03460cbcfcfbcf8995b1.tar.xz
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')
-rw-r--r--include/linux/blk-mq.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h
index 2498fdf..cbfd8ca 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);