[SCSI] mpt2sas: modified _scsih_sas_device_find_by_handle/sas_address
authorKashyap, Desai <kashyap.desai@lsi.com>
Tue, 9 Mar 2010 11:02:17 +0000 (16:32 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 11 Apr 2010 14:23:28 +0000 (09:23 -0500)
commitcd9843f8afb9dbdee101d1d7d9717e361c7c9b3a
tree78b6f5d7945e2a6250f6085fe41243c389865805
parentf1c35e6aea579d5bdb6dc02dfa99c67c7c3b3f67
[SCSI] mpt2sas: modified _scsih_sas_device_find_by_handle/sas_address

modified _scsih_sas_device_find_by_handle
so to handle the search on both list(device list and device_init_list)
Also, we moved the priority of the
search so the ioc->sas_device_list is done first.  The
"sas_device_init_list" is only used during the 1st port enable, so its
unlikely there’s devices on it.

Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Reviewed-by: Eric Moore <eric.moore@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/mpt2sas/mpt2sas_scsih.c