]> www.infradead.org Git - users/hch/block.git/commit
blk-mq: factor out a blk_qc_to_hctx helper
authorChristoph Hellwig <hch@lst.de>
Tue, 27 Apr 2021 07:38:13 +0000 (09:38 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 12 Oct 2021 10:41:15 +0000 (12:41 +0200)
commita6a8b9781df0b214f015e6268bbc6f81c4ca2c7c
treec4af05bb1a710b3d5fb83367003c6d53a04ab7ac
parent525069d9ba580efe7db3df5239c451278ad81c2c
blk-mq: factor out a blk_qc_to_hctx helper

Add a helper to get the hctx from a request_queue and cookie, and fold
the blk_qc_t_to_queue_num helper into it as no other callers are left.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Tested-by: Mark Wunderlich <mark.wunderlich@intel.com>
block/blk-mq.c
include/linux/blk_types.h