[SCSI] qla2xxx: Handle device mapping changes due to device logout.
authorArun Easi <arun.easi@qlogic.com>
Thu, 9 Feb 2012 19:15:58 +0000 (11:15 -0800)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 19 Feb 2012 14:33:48 +0000 (08:33 -0600)
commit0eba25df2190f191cb92879b225a0e484c3e5b51
tree72260202ee80e498b939e61dd7bdbb8c9f4b9f24
parent642ef983861a6a7ba41e9d7c0aa4da8f6d5af5bf
[SCSI] qla2xxx: Handle device mapping changes due to device logout.

A device logout sent in the delete path of a fcport would clear the
port handle binding inside the firmware. This could lead to queued
work items for the fcport, if any, getting incorrect results. This
patch fixes the issue by checking for device name changes after a
call to get port database.

Signed-off-by: Arun Easi <arun.easi@qlogic.com>
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla2xxx/qla_init.c
drivers/scsi/qla2xxx/qla_mbx.c