aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/fusion/mptsas.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/message/fusion/mptsas.c')
-rw-r--r--drivers/message/fusion/mptsas.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c
index 00d339c361fc..711fcb5cec87 100644
--- a/drivers/message/fusion/mptsas.c
+++ b/drivers/message/fusion/mptsas.c
@@ -1896,7 +1896,7 @@ mptsas_slave_alloc(struct scsi_device *sdev)
1896} 1896}
1897 1897
1898static int 1898static int
1899mptsas_qcmd_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) 1899mptsas_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *SCpnt)
1900{ 1900{
1901 MPT_SCSI_HOST *hd; 1901 MPT_SCSI_HOST *hd;
1902 MPT_ADAPTER *ioc; 1902 MPT_ADAPTER *ioc;
@@ -1904,11 +1904,11 @@ mptsas_qcmd_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *))
1904 1904
1905 if (!vdevice || !vdevice->vtarget || vdevice->vtarget->deleted) { 1905 if (!vdevice || !vdevice->vtarget || vdevice->vtarget->deleted) {
1906 SCpnt->result = DID_NO_CONNECT << 16; 1906 SCpnt->result = DID_NO_CONNECT << 16;
1907 done(SCpnt); 1907 SCpnt->scsi_done(SCpnt);
1908 return 0; 1908 return 0;
1909 } 1909 }
1910 1910
1911 hd = shost_priv(SCpnt->device->host); 1911 hd = shost_priv(shost);
1912 ioc = hd->ioc; 1912 ioc = hd->ioc;
1913 1913
1914 if (ioc->sas_discovery_quiesce_io) 1914 if (ioc->sas_discovery_quiesce_io)
@@ -1917,11 +1917,9 @@ mptsas_qcmd_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *))
1917 if (ioc->debug_level & MPT_DEBUG_SCSI) 1917 if (ioc->debug_level & MPT_DEBUG_SCSI)
1918 scsi_print_command(SCpnt); 1918 scsi_print_command(SCpnt);
1919 1919
1920 return mptscsih_qcmd(SCpnt,done); 1920 return mptscsih_qcmd(SCpnt);
1921} 1921}
1922 1922
1923static DEF_SCSI_QCMD(mptsas_qcmd)
1924
1925/** 1923/**
1926 * mptsas_mptsas_eh_timed_out - resets the scsi_cmnd timeout 1924 * mptsas_mptsas_eh_timed_out - resets the scsi_cmnd timeout
1927 * if the device under question is currently in the 1925 * if the device under question is currently in the