diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-09 21:54:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-09 21:54:06 -0400 |
commit | 1c54fc1efe6922b4e7ffd591739d72050976ccd6 (patch) | |
tree | 0f7f0eaa91fa06bba11da240915eb6a4040b482a /drivers/message/fusion/mptsas.c | |
parent | f4f9b8fc73f9aa93744f0e91e18f367d7766f523 (diff) | |
parent | b4c43993f448d0e25fe40690d9e9c81a8ebda623 (diff) |
Merge tag 'scsi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull SCSI updates from James Bottomley:
"This patch consists of the usual driver updates (qla2xxx, qla4xxx,
lpfc, be2iscsi, fnic, ufs, NCR5380) The NCR5380 is the addition to
maintained status of a long neglected driver for older hardware. In
addition there are a lot of minor fixes and cleanups and some more
updates to make scsi mq ready"
* tag 'scsi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (130 commits)
include/scsi/osd_protocol.h: remove unnecessary __constant
mvsas: Recognise device/subsystem 9485/9485 as 88SE9485
Revert "be2iscsi: Fix processing cqe for cxn whose endpoint is freed"
mptfusion: fix msgContext in mptctl_hp_hostinfo
acornscsi: remove linked command support
scsi/NCR5380: dprintk macro
fusion: Remove use of DEF_SCSI_QCMD
fusion: Add free msg frames to the head, not tail of list
mpt2sas: Add free smids to the head, not tail of list
mpt2sas: Remove use of DEF_SCSI_QCMD
mpt2sas: Remove uses of serial_number
mpt3sas: Remove use of DEF_SCSI_QCMD
mpt3sas: Remove uses of serial_number
qla2xxx: Use kmemdup instead of kmalloc + memcpy
qla4xxx: Use kmemdup instead of kmalloc + memcpy
qla2xxx: fix incorrect debug printk
be2iscsi: Bump the driver version
be2iscsi: Fix processing cqe for cxn whose endpoint is freed
be2iscsi: Fix destroy MCC-CQ before MCC-EQ is destroyed
be2iscsi: Fix memory corruption in MBX path
...
Diffstat (limited to 'drivers/message/fusion/mptsas.c')
-rw-r--r-- | drivers/message/fusion/mptsas.c | 10 |
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 | ||
1898 | static int | 1898 | static int |
1899 | mptsas_qcmd_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) | 1899 | mptsas_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 | ||
1923 | static 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 |