Re: [PATCH] scsi: pm8001: Offset hardware queue index for MSI-X pre-vector

From: Bart Van Assche

Date: Mon Nov 16 2026 - 18:04:46 EST


On 11/16/26 2:48 PM, TJ Adams wrote:
- return blk_mq_unique_tag_to_hwq(blk_mq_unique_tag(rq));
+ if (pm8001_ha->number_of_intr > 1)
+ return blk_mq_unique_tag_to_hwq(blk_mq_unique_tag(rq)) + 1;

If "1" in the above statement is not changed into a symbolic constant,
it will be very hard for anyone who reads the code of this driver to
determine where that constant comes from.

Thanks,

Bart.