Skip to content

Commit e5aab84

Browse files
cp890582martinkpetersen
authored andcommitted
scsi: mpi3mr: Refresh sdev queue depth after controller reset
After a controller reset, the firmware may modify the device queue depth. Therefore, update the device queue depth accordingly. Cc: <[email protected]> # v5.15+ Co-developed-by: Sathya Prakash <[email protected]> Signed-off-by: Sathya Prakash <[email protected]> Signed-off-by: Chandrakanth patil <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent b4d9416 commit e5aab84

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

drivers/scsi/mpi3mr/mpi3mr_os.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,8 +1070,14 @@ void mpi3mr_rfresh_tgtdevs(struct mpi3mr_ioc *mrioc)
10701070
tgtdev = NULL;
10711071
list_for_each_entry(tgtdev, &mrioc->tgtdev_list, list) {
10721072
if ((tgtdev->dev_handle != MPI3MR_INVALID_DEV_HANDLE) &&
1073-
!tgtdev->is_hidden && !tgtdev->host_exposed)
1074-
mpi3mr_report_tgtdev_to_host(mrioc, tgtdev->perst_id);
1073+
!tgtdev->is_hidden) {
1074+
if (!tgtdev->host_exposed)
1075+
mpi3mr_report_tgtdev_to_host(mrioc,
1076+
tgtdev->perst_id);
1077+
else if (tgtdev->starget)
1078+
starget_for_each_device(tgtdev->starget,
1079+
(void *)tgtdev, mpi3mr_update_sdev);
1080+
}
10751081
}
10761082
}
10771083

0 commit comments

Comments
 (0)