[SCSI] libsas: use ->lldd_I_T_nexus_reset for ->eh_bus_reset_handler
authorDan Williams <dan.j.williams@intel.com>
Fri, 22 Jun 2012 06:30:58 +0000 (23:30 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 20 Jul 2012 07:58:51 +0000 (08:58 +0100)
commite7db8229964365451b8ec48e32b5558100b0a318
treebfa7b0a0fd928078d0d644941203cd6fcb052d4e
parent9524c6821849bddad4bf592a47276cfb8a8a98c0
[SCSI] libsas: use ->lldd_I_T_nexus_reset for ->eh_bus_reset_handler

sas_eh_bus_reset_handler() amounts to sas_phy_reset() without
notification of the reset to the lldd.  If this is triggered from
eh-cmnd recovery there may be sas_tasks for the lldd to terminate, so
->lldd_I_T_nexus_reset is warranted.

Cc: Xiangliang Yu <yuxiangl@marvell.com>
Cc: Luben Tuikov <ltuikov@yahoo.com>
Cc: Jack Wang <jack_wang@usish.com>
Reviewed-by: Jacek Danecki <jacek.danecki@intel.com>
[jacek: modify pm8001_I_T_nexus_reset to return -ENODEV]
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/libsas/sas_scsi_host.c
drivers/scsi/pm8001/pm8001_sas.c