Skip to content

Commit 3089aec

Browse files
committed
Merge: smartpqi: Correct blk-mq registration issue
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/3777 JIRA: https://issues.redhat.com/browse/RHEL-26145 Tested on an x86 server. Signed-off-by: Tomas Henzl <thenzl@redhat.com> Approved-by: Ewan D. Milne <emilne@redhat.com> Approved-by: Maurizio Lombardi <mlombard@redhat.com> Merged-by: Scott Weaver <scweaver@redhat.com>
2 parents 5e66be0 + 532f51b commit 3089aec

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/scsi/smartpqi/smartpqi_init.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6505,8 +6505,11 @@ static void pqi_map_queues(struct Scsi_Host *shost)
65056505
{
65066506
struct pqi_ctrl_info *ctrl_info = shost_to_hba(shost);
65076507

6508-
blk_mq_pci_map_queues(&shost->tag_set.map[HCTX_TYPE_DEFAULT],
6508+
if (!ctrl_info->disable_managed_interrupts)
6509+
return blk_mq_pci_map_queues(&shost->tag_set.map[HCTX_TYPE_DEFAULT],
65096510
ctrl_info->pci_dev, 0);
6511+
else
6512+
return blk_mq_map_queues(&shost->tag_set.map[HCTX_TYPE_DEFAULT]);
65106513
}
65116514

65126515
static inline bool pqi_is_tape_changer_device(struct pqi_scsi_dev *device)

0 commit comments

Comments
 (0)