]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: add blk_mq_unique_tag()
authorBart Van Assche <bvanassche@acm.org>
Thu, 30 Oct 2014 13:45:11 +0000 (14:45 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 12 Nov 2014 10:16:09 +0000 (11:16 +0100)
commit203a9ed9dedf3def59d9b6d496238e29e96afb31
tree4f703687be0330fae7e7789f0a4534973535fd0a
parentcc7441b40aea44ab9168b7f26e724ec9a9875fd8
blk-mq: add blk_mq_unique_tag()

The queuecommand() callback functions in SCSI low-level drivers
need to know which hardware context has been selected by the
block layer. Since this information is not available in the
request structure, and since passing the hctx pointer directly to
the queuecommand callback function would require modification of
all SCSI LLDs, add a function to the block layer that allows to
query the hardware context index.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
block/blk-mq-tag.c
block/blk-mq.c
include/linux/blk-mq.h