]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[SCSI] bnx2fc: Do not attempt destroying NPIV port twice
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>
Fri, 5 Aug 2011 00:38:39 +0000 (17:38 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 24 Aug 2011 03:29:05 +0000 (20:29 -0700)
commitc7ad3cd621abca5469cbdd187135b0139f449a94
tree511ac43d950d0d145d6d46458bca1b5f5e8c21ec
parent47ebed13903526c481e8271010c6acd62db671e2
[SCSI] bnx2fc: Do not attempt destroying NPIV port twice

When NPIV ports are created/deleted rapidly there is a race condition between
bnx2fc_vport_destroy() from sysfs and bnx2fc_flogi_resp(), which could try to
delete the NPIV port from the list twice. Fix is to loop through the list of
NPIV ports to find a match, and only when it exists remove it.

Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/bnx2fc/bnx2fc_fcoe.c