linux/drivers/scsi/bfa
Krishna Gudipati 5b7db7af52 [SCSI] bfa: Implement LUN Masking feature using the SCSI Slave Callouts.
This patch re-implements LUN Masking feature using SCSI Slave Callouts.  With
the new design in the slave_alloc entry point; for each new LUN discovered we
check with our internal LUN Masking config whether to expose or to mask this
particular LUN. We return -ENXIO (No such device or address) from slave_alloc
for the LUNs we don't want to be exposed.  We also notify the SCSI mid-layer
to do a sequential LUN scan rather than REPORT_LUNS based scan if LUN masking
is enabled on our HBA port, since a -ENXIO from any LUN in REPORT_LUNS based
scan translates to a scan abort.  This patch also handles the dynamic lun
masking config change from enable to disable or vice-versa by resetting
sdev_bflags of LUN 0 appropriately.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2012-01-10 17:01:24 -06:00
..
bfa_core.c
bfa_cs.h
bfa_defs_fcs.h
bfa_defs_svc.h [SCSI] bfa: Revert back the current LUN Masking Implementation. 2012-01-10 17:01:24 -06:00
bfa_defs.h
bfa_fc.h [SCSI] bfa: Revert back the current LUN Masking Implementation. 2012-01-10 17:01:24 -06:00
bfa_fcbuild.c
bfa_fcbuild.h
bfa_fcpim.c [SCSI] bfa: Revert back the current LUN Masking Implementation. 2012-01-10 17:01:24 -06:00
bfa_fcpim.h [SCSI] bfa: Revert back the current LUN Masking Implementation. 2012-01-10 17:01:24 -06:00
bfa_fcs_fcpim.c
bfa_fcs_lport.c
bfa_fcs_rport.c
bfa_fcs.c
bfa_fcs.h
bfa_hw_cb.c
bfa_hw_ct.c
bfa_ioc_cb.c
bfa_ioc_ct.c
bfa_ioc.c
bfa_ioc.h
bfa_modules.h
bfa_plog.h
bfa_port.c
bfa_port.h
bfa_svc.c
bfa_svc.h [SCSI] bfa: Revert back the current LUN Masking Implementation. 2012-01-10 17:01:24 -06:00
bfa.h
bfad_attr.c [SCSI] bfa: Implement LUN Masking feature using the SCSI Slave Callouts. 2012-01-10 17:01:24 -06:00
bfad_bsg.c [SCSI] bfa: Implement LUN Masking feature using the SCSI Slave Callouts. 2012-01-10 17:01:24 -06:00
bfad_bsg.h
bfad_debugfs.c
bfad_drv.h [SCSI] bfa: Implement LUN Masking feature using the SCSI Slave Callouts. 2012-01-10 17:01:24 -06:00
bfad_im.c [SCSI] bfa: Implement LUN Masking feature using the SCSI Slave Callouts. 2012-01-10 17:01:24 -06:00
bfad_im.h [SCSI] bfa: Implement LUN Masking feature using the SCSI Slave Callouts. 2012-01-10 17:01:24 -06:00
bfad.c [SCSI] bfa: Implement LUN Masking feature using the SCSI Slave Callouts. 2012-01-10 17:01:24 -06:00
bfi_ms.h
bfi_reg.h
bfi.h
Makefile