]> Pileus Git - ~andy/linux/commit
isci: Check IDEV_GONE before performing abort path operations.
authorJeff Skirvin <jeffrey.d.skirvin@intel.com>
Sat, 10 Mar 2012 05:46:46 +0000 (05:46 +0000)
committerDan Williams <dan.j.williams@intel.com>
Thu, 17 May 2012 21:33:43 +0000 (14:33 -0700)
commit397497dd61948b0d59d1d21812b93c97b0eeb2dd
treef156de22337932cba5d5a4dedbb80bfa0054dd4c
parent87805162b6af20d2ad386a49aec13b753cca523a
isci: Check IDEV_GONE before performing abort path operations.

In the link fail path, set IDEV_GONE for every device on the domain
when the last link in the port fails.

In the abort path functions like isci_reset_device, make sure that
there has not already been a detected domain failure with the device
by checking IDEV_GONE, before performing any kind of hard reset, SMP
phy control, or TMF operation.

The check for IDEV_GONE makes sure that the device in the abort path
really has control of the port with which it is associated.  This
prevents starting hard resets at incorrect times and scheduling
unnecessary LUN resets for SATA devices.

Signed-off-by: Jeff Skirvin <jeffrey.d.skirvin@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/scsi/isci/port.c
drivers/scsi/isci/task.c