diff options
| author | 2015-09-02 12:22:54 -0700 | |
|---|---|---|
| committer | 2015-09-02 12:22:54 -0700 | |
| commit | df910390e2db07a76c87f258475f6c96253cee6c (patch) | |
| tree | d522f0f098688c330014c5d78be6b3e74de87b7e /drivers/scsi/scsi_error.c | |
| parent | Merge tag 'for-linus-20150901' of git://git.infradead.org/linux-mtd (diff) | |
| parent | aic94xx: set an error code on failure (diff) | |
| download | linux-dev-df910390e2db07a76c87f258475f6c96253cee6c.tar.xz linux-dev-df910390e2db07a76c87f258475f6c96253cee6c.zip | |
Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull first round of SCSI updates from James Bottomley:
 "This includes one new driver: cxlflash plus the usual grab bag of
  updates for the major drivers: qla2xxx, ipr, storvsc, pm80xx, hptiop,
  plus a few assorted fixes.
  There's another tranch coming, but I want to incubate it another few
  days in the checkers, plus it includes a mpt2sas separated lifetime
  fix, which Avago won't get done testing until Friday"
* tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (85 commits)
  aic94xx: set an error code on failure
  storvsc: Set the error code correctly in failure conditions
  storvsc: Allow write_same when host is windows 10
  storvsc: use storage protocol version to determine storage capabilities
  storvsc: use correct defaults for values determined by protocol negotiation
  storvsc: Untangle the storage protocol negotiation from the vmbus protocol negotiation.
  storvsc: Use a single value to track protocol versions
  storvsc: Rather than look for sets of specific protocol versions, make decisions based on ranges.
  cxlflash: Remove unused variable from queuecommand
  cxlflash: shift wrapping bug in afu_link_reset()
  cxlflash: off by one bug in cxlflash_show_port_status()
  cxlflash: Virtual LUN support
  cxlflash: Superpipe support
  cxlflash: Base error recovery support
  qla2xxx: Update driver version to 8.07.00.26-k
  qla2xxx: Add pci device id 0x2261.
  qla2xxx: Fix missing device login retries.
  qla2xxx: do not clear slot in outstanding cmd array
  qla2xxx: Remove decrement of sp reference count in abort handler.
  qla2xxx: Add support to show MPI and PEP FW version for ISP27xx.
  ...
Diffstat (limited to 'drivers/scsi/scsi_error.c')
| -rw-r--r-- | drivers/scsi/scsi_error.c | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index 6457a8a0db9c..afd34a608fe7 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c @@ -420,6 +420,10 @@ static void scsi_report_sense(struct scsi_device *sdev,  			evt_type = SDEV_EVT_MODE_PARAMETER_CHANGE_REPORTED;  			sdev_printk(KERN_WARNING, sdev,  				    "Mode parameters changed"); +		} else if (sshdr->asc == 0x2a && sshdr->ascq == 0x06) { +			evt_type = SDEV_EVT_ALUA_STATE_CHANGE_REPORTED; +			sdev_printk(KERN_WARNING, sdev, +				    "Asymmetric access state changed");  		} else if (sshdr->asc == 0x2a && sshdr->ascq == 0x09) {  			evt_type = SDEV_EVT_CAPACITY_CHANGE_REPORTED;  			sdev_printk(KERN_WARNING, sdev, @@ -1155,8 +1159,13 @@ int scsi_eh_get_sense(struct list_head *work_q,  	struct Scsi_Host *shost;  	int rtn; +	/* +	 * If SCSI_EH_ABORT_SCHEDULED has been set, it is timeout IO, +	 * should not get sense. +	 */  	list_for_each_entry_safe(scmd, next, work_q, eh_entry) {  		if ((scmd->eh_eflags & SCSI_EH_CANCEL_CMD) || +		    (scmd->eh_eflags & SCSI_EH_ABORT_SCHEDULED) ||  		    SCSI_SENSE_VALID(scmd))  			continue; | 
