Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181379
b: refs/heads/master
c: 3ed2152
h: refs/heads/master
i:
  181377: 3e0d4ca
  181375: c49625d
v: v3
  • Loading branch information
Kashyap, Desai authored and James Bottomley committed Feb 17, 2010
1 parent 089a4ac commit a5ac64b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 34c2b712992540ca436e97432ffc57c84c8f8c18
refs/heads/master: 3ed215259f2d8cd937abc833dc76e309173aaa52
8 changes: 5 additions & 3 deletions trunk/drivers/scsi/mpt2sas/mpt2sas_scsih.c
Original file line number Diff line number Diff line change
Expand Up @@ -3062,8 +3062,9 @@ _scsih_qcmd(struct scsi_cmnd *scmd, void (*done)(struct scsi_cmnd *))

} else
mpi_control |= MPI2_SCSIIO_CONTROL_SIMPLEQ;

if (sas_is_tlr_enabled(scmd->device))
/* Make sure Device is not raid volume */
if (!_scsih_is_raid(&scmd->device->sdev_gendev) &&
sas_is_tlr_enabled(scmd->device))
mpi_control |= MPI2_SCSIIO_CONTROL_TLR_ON;

smid = mpt2sas_base_get_smid_scsiio(ioc, ioc->scsi_io_cb_idx, scmd);
Expand Down Expand Up @@ -3452,7 +3453,8 @@ _scsih_io_done(struct MPT2SAS_ADAPTER *ioc, u16 smid, u8 msix_index, u32 reply)
le32_to_cpu(mpi_reply->ResponseInfo) & 0xFF;
if (!sas_device_priv_data->tlr_snoop_check) {
sas_device_priv_data->tlr_snoop_check++;
if (sas_is_tlr_enabled(scmd->device) &&
if (!_scsih_is_raid(&scmd->device->sdev_gendev) &&
sas_is_tlr_enabled(scmd->device) &&
response_code == MPI2_SCSITASKMGMT_RSP_INVALID_FRAME) {
sas_disable_tlr(scmd->device);
sdev_printk(KERN_INFO, scmd->device, "TLR disabled\n");
Expand Down

0 comments on commit a5ac64b

Please sign in to comment.