]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] libsas: fix/amend device gone notification in sas_deform_port()
authorDan Williams <dan.j.williams@intel.com>
Tue, 24 May 2011 20:17:53 +0000 (13:17 -0700)
committerJames Bottomley <jbottomley@parallels.com>
Fri, 27 May 2011 03:49:32 +0000 (22:49 -0500)
commitf535032c993cb5355dce9439706f64c6e62e1c67
treebd3996757f33ac6a1cc8bf6c26dd47920363043d
parentb59d42e05c904ee5c343e053584f3b805f1907dd
[SCSI] libsas: fix/amend device gone notification in sas_deform_port()

Commit b30f479d "libsas: Don't issue commands to devices that have been
hot-removed" edited Darrick's original patch to remove setting 'gone' in
the sas_deform_port() path because that prevented scsi sync cache
commands from being issued when the driver was unloaded.  However, this
allows true device gone notifications (as signaled port phy events) to
trigger sync cache commands to devices that are known to be unreachable.

Teach libsas which sas_deform_port() invocations are likely device gone
events.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: James Bottomley <jbottomley@parallels.com>
drivers/scsi/libsas/sas_internal.h
drivers/scsi/libsas/sas_phy.c
drivers/scsi/libsas/sas_port.c