[SCSI] libsas: defer SAS_TASK_NEED_DEV_RESET commands to libata
authorDan Williams <dan.j.williams@intel.com>
Tue, 29 Nov 2011 22:54:28 +0000 (14:54 -0800)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 19 Feb 2012 20:09:02 +0000 (14:09 -0600)
commit3a2cdf391b62919d3d2862cdce3d70b9a7a99673
tree8064bea5987445b88b074c02cf65cc5ac1b2ce98
parent3944f50995f947558c35fb16ae0288354756762c
[SCSI] libsas: defer SAS_TASK_NEED_DEV_RESET commands to libata

lldds use the SAS_TASK_NEED_DEV_RESET interface to request that eh
perform a reset.  In the sata device case defer the commands that
triggered the reset to libata-eh context so it can perform its pre and
post reset management.

In the sas_ata_post_internal() case the reset request is falling on deaf
ears as the sas_task is immediately destroyed without any reset action.
Since it is currently a nop, and likely superfluous given the conversion
to new-style libata-eh, just drop the request.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/libsas/sas_ata.c
drivers/scsi/libsas/sas_scsi_host.c