aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mpt2sas/mpi/mpi2_ioc.h
diff options
context:
space:
mode:
author[email protected] <[email protected]>2015-01-05 14:36:08 +0000
committerChristoph Hellwig <[email protected]>2015-01-09 14:44:34 +0000
commitab2f0608e16d64a23a2dcc8d83b966a0e0a281f3 (patch)
treeb21f069ae8b20a598846ce6d26507a200a8eb641 /drivers/scsi/mpt2sas/mpi/mpi2_ioc.h
parentmegaraid_sas: add support for secure JBOD (diff)
downloadkernel-ab2f0608e16d64a23a2dcc8d83b966a0e0a281f3.tar.gz
kernel-ab2f0608e16d64a23a2dcc8d83b966a0e0a281f3.zip
megaraid_sas: fix the problem of non-existing VD exposed to host
This patch will address the issue of SCSI device created at OS level for non existing VD. ldTgtIdtoLd[] array has size 256 for Extended VD firmware and 128 for legacy firmware. Accessing indices beyond array size (OS will send TUR, INQUIRY.. commands upto device index 255), may return valid LD value and that particular SCSI command will be SUCCESS and creating SCSI device for non existing target(VD). For legacy firmware (64 VD firmware), invalidates LD (by setting LD value to 0xff) in LdTgtIdtoLd[] array for device index beyond 127, so that invalid LD(0xff) value should be returned beyond device index beyond 127. Cc: <[email protected]> Signed-off-by: Kashyap Desai <[email protected]> Signed-off-by: Sumit Saxena <[email protected]> Reviewed-by: Martin K. Petersen <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_ioc.h')
0 files changed, 0 insertions, 0 deletions