]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: factor out a blk_qc_to_hctx helper
authorChristoph Hellwig <hch@lst.de>
Tue, 12 Oct 2021 11:12:15 +0000 (13:12 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Oct 2021 12:17:35 +0000 (06:17 -0600)
commita7fcc7d2ed80de9c6e607c1c019d53300e114e0b
treee38d169c9bc2db3ec2d8bda952e364efc8413667
parent1c9f133b0a9f7fc0f99d4d37162615e71e4292e3
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>
Link: https://lore.kernel.org/r/20211012111226.760968-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
include/linux/blk_types.h