kernel_optimize_test/drivers/scsi/megaraid
Chandrakanth patil e8cf1e4d95 scsi: megaraid_sas: Target with invalid LUN ID is deleted during scan
[ Upstream commit 56495f295d8e021f77d065b890fc0100e3f9f6d8 ]

The megaraid_sas driver supports single LUN for RAID devices. That is LUN
0. All other LUNs are unsupported. When a device scan on a logical target
with invalid LUN number is invoked through sysfs, that target ends up
getting removed.

Add LUN ID validation in the slave destroy function to avoid the target
deletion.

Link: https://lore.kernel.org/r/20220324094711.48833-1-chandrakanth.patil@broadcom.com
Signed-off-by: Chandrakanth patil <chandrakanth.patil@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-20 09:23:24 +02:00
..
Kconfig.megaraid
Makefile
mbox_defs.h
mega_common.h
megaraid_ioctl.h
megaraid_mbox.c
megaraid_mbox.h
megaraid_mm.c scsi: megaraid_mm: Fix end of loop tests for list_for_each_entry() 2021-08-26 08:35:36 -04:00
megaraid_mm.h
megaraid_sas_base.c scsi: megaraid_sas: Target with invalid LUN ID is deleted during scan 2022-04-20 09:23:24 +02:00
megaraid_sas_debugfs.c
megaraid_sas_fp.c scsi: megaraid_sas: Early detection of VD deletion through RaidMap update 2021-07-20 16:05:41 +02:00
megaraid_sas_fusion.c scsi: megaraid_sas: Handle missing interrupts while re-enabling IRQs 2021-07-20 16:05:41 +02:00
megaraid_sas_fusion.h
megaraid_sas.h scsi: megaraid_sas: Target with invalid LUN ID is deleted during scan 2022-04-20 09:23:24 +02:00