linux/drivers/scsi/mpt3sas
Sreekanth Reddy 62f5c74c97 mpt3sas: Return host busy error status to SML when DMA mapping of scatter gather list fails for a SCSI command
scsi_dma_map API will return a negative value (i.e. -ENOMEM)
if DMA mapping of sg lists fails and zero if the sg list in the
SCSI cmd is NULL. But drivers doesn't handled sg list DMA mapping
failure case properly.

So, Updated the code to return host busy error status to SCSI MID Layer(SML),
when DMA mapping of scatter gather list fails for a SCSI command.
So that SML will retry this SCSI cmd after some time.

Signed-off-by: Sreekanth Reddy <Sreekanth.Reddy@avagotech.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
2015-08-27 11:08:29 -07:00
..
mpi mpt3sas: MPI 2.5 Rev K (2.5.6) specifications 2015-08-27 11:08:28 -07:00
Kconfig mpt3sas: Copyright in driver sources is updated for year the 2014. 2014-09-16 09:14:19 -07:00
Makefile [SCSI] Allow MPT Fusion SAS 3.0 driver to be built into the kernel 2013-09-06 11:42:53 -07:00
mpt3sas_base.c mpt3sas: Return host busy error status to SML when DMA mapping of scatter gather list fails for a SCSI command 2015-08-27 11:08:29 -07:00
mpt3sas_base.h mpt3sas: Complete the SCSI command with DID_RESET status for log_info value 0x0x32010081 2015-08-27 11:08:29 -07:00
mpt3sas_config.c mpt2sas, mpt3sas: Update attribution language to Avago 2015-01-13 16:27:27 +01:00
mpt3sas_ctl.c mpt2sas, mpt3sas: Update attribution language to Avago 2015-01-13 16:27:27 +01:00
mpt3sas_ctl.h mpt2sas, mpt3sas: Update attribution language to Avago 2015-01-13 16:27:27 +01:00
mpt3sas_debug.h mpt2sas, mpt3sas: Update attribution language to Avago 2015-01-13 16:27:27 +01:00
mpt3sas_scsih.c mpt3sas: Complete the SCSI command with DID_RESET status for log_info value 0x0x32010081 2015-08-27 11:08:29 -07:00
mpt3sas_transport.c mpt3sas: Don't block the drive when drive addition under the control of SML 2015-08-27 11:08:23 -07:00
mpt3sas_trigger_diag.c mpt2sas, mpt3sas: Update attribution language to Avago 2015-01-13 16:27:27 +01:00
mpt3sas_trigger_diag.h mpt2sas, mpt3sas: Update attribution language to Avago 2015-01-13 16:27:27 +01:00