From: Bhanu Prakash Gollapudi Date: Fri, 5 Aug 2011 00:38:39 +0000 (-0700) Subject: [SCSI] bnx2fc: Do not attempt destroying NPIV port twice X-Git-Tag: v3.2-rc1~125^2~193 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdf54668bc48193e43adc8f75ce419ce0ce50fc0;p=pandora-kernel.git [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 Signed-off-by: James Bottomley --- Reading git-diff-tree failed