[SCSI] mpt2sas: LUN Reset Support
authorEric Moore <eric.moore@lsi.com>
Mon, 18 May 2009 19:00:45 +0000 (13:00 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 23 May 2009 20:44:17 +0000 (15:44 -0500)
commit993e0da7b767c0a7c1fd0079b16f3d28e6f25a48
tree1e64897334fdeb48b71778c0eddbb929c04eb4c1
parent3c621b3ee1432e7a2aca4a3b670b1d05f19ecf9c
[SCSI] mpt2sas: LUN Reset Support

Adding new eh_target_reset_handler for target reset. Change the
eh_device_reset_handler so its sending
MPI2_SCSITASKMGMT_TASKTYPE_LOGICAL_UNIT_RESET, instead of
MPI2_SCSITASKMGMT_TASKTYPE_TARGET_RESET.  Add new function
_scsih_scsi_lookup_find_by_lun as a sanity check to insure I_T_L commands are
completed upon completing lun reset.

Signed-off-by: Eric Moore <eric.moore@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/mpt2sas/mpt2sas_scsih.c