Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

block: mtip32xx: don't touch q->queue_hw_ctx

q->queue_hw_ctx is really one blk-mq internal structure for retrieving
hctx via its index, not supposed to be used by drivers. Meantime drivers
can get the tags structure easily from tagset.

Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20220308073219.91173-5-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Ming Lei and committed by
Jens Axboe
de0328d3 42ee3061

+1 -3
+1 -3
drivers/block/mtip32xx/mtip32xx.c
··· 160 160 static struct mtip_cmd *mtip_cmd_from_tag(struct driver_data *dd, 161 161 unsigned int tag) 162 162 { 163 - struct blk_mq_hw_ctx *hctx = dd->queue->queue_hw_ctx[0]; 164 - 165 - return blk_mq_rq_to_pdu(blk_mq_tag_to_rq(hctx->tags, tag)); 163 + return blk_mq_rq_to_pdu(blk_mq_tag_to_rq(dd->tags.tags[0], tag)); 166 164 } 167 165 168 166 /*