]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: mpi3mr: Hidden drives not removed during soft reset
authorSreekanth Reddy <sreekanth.reddy@broadcom.com>
Thu, 5 May 2022 18:48:07 +0000 (00:18 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 11 May 2022 02:18:47 +0000 (22:18 -0400)
commit941e90b3a76cca19cdb4099b99d06c133c2266f9
tree2b6f42abb0b5ad63a8f8ab4ce6cbdc4d1ab502e1
parent399c585d0df8b7efa78363dd142dabe4a00c28fc
scsi: mpi3mr: Hidden drives not removed during soft reset

If any drive is missing during reset, the driver checks whether the device
is exposed to the OS. If it is, then it removes the device from the OS and
its own internal list. For hidden devices, even if they are found as
missing during reset, the driver is not removing them from its internal
list.

Modify driver to remove hidden devices from the driver's target device list
if they are missing during soft reset.

Link: https://lore.kernel.org/r/20220505184808.24049-2-sreekanth.reddy@broadcom.com
Signed-off-by: Sreekanth Reddy <sreekanth.reddy@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpi3mr/mpi3mr_os.c