This is a note to let you know that I've just added the patch titled scsi: mpi3mr: Refresh sdev queue depth after controller reset to the 6.1-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: scsi-mpi3mr-refresh-sdev-queue-depth-after-controller-reset.patch and it can be found in the queue-6.1 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From e5aab848dfdf7996d20ece4d28d2733c732c5e5a Mon Sep 17 00:00:00 2001 From: Chandrakanth patil <chandrakanth.patil@xxxxxxxxxxxx> Date: Sun, 26 Nov 2023 11:01:31 +0530 Subject: scsi: mpi3mr: Refresh sdev queue depth after controller reset From: Chandrakanth patil <chandrakanth.patil@xxxxxxxxxxxx> commit e5aab848dfdf7996d20ece4d28d2733c732c5e5a upstream. After a controller reset, the firmware may modify the device queue depth. Therefore, update the device queue depth accordingly. Cc: <stable@xxxxxxxxxxxxxxx> # v5.15+ Co-developed-by: Sathya Prakash <sathya.prakash@xxxxxxxxxxxx> Signed-off-by: Sathya Prakash <sathya.prakash@xxxxxxxxxxxx> Signed-off-by: Chandrakanth patil <chandrakanth.patil@xxxxxxxxxxxx> Link: https://lore.kernel.org/r/20231126053134.10133-2-chandrakanth.patil@xxxxxxxxxxxx Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/scsi/mpi3mr/mpi3mr_os.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) --- a/drivers/scsi/mpi3mr/mpi3mr_os.c +++ b/drivers/scsi/mpi3mr/mpi3mr_os.c @@ -1044,8 +1044,14 @@ void mpi3mr_rfresh_tgtdevs(struct mpi3mr tgtdev = NULL; list_for_each_entry(tgtdev, &mrioc->tgtdev_list, list) { if ((tgtdev->dev_handle != MPI3MR_INVALID_DEV_HANDLE) && - !tgtdev->is_hidden && !tgtdev->host_exposed) - mpi3mr_report_tgtdev_to_host(mrioc, tgtdev->perst_id); + !tgtdev->is_hidden) { + if (!tgtdev->host_exposed) + mpi3mr_report_tgtdev_to_host(mrioc, + tgtdev->perst_id); + else if (tgtdev->starget) + starget_for_each_device(tgtdev->starget, + (void *)tgtdev, mpi3mr_update_sdev); + } } } Patches currently in stable-queue which might be from chandrakanth.patil@xxxxxxxxxxxx are queue-6.1/scsi-mpi3mr-block-pel-enable-command-on-controller-reset-and-unrecoverable-state.patch queue-6.1/scsi-mpi3mr-refresh-sdev-queue-depth-after-controller-reset.patch