From: Brian King Date: Thu, 5 Aug 2010 21:38:31 +0000 (-0500) Subject: [SCSI] ibmvfc: Fix rport add/delete race resulting in oops X-Git-Tag: v2.6.36-rc1~15^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5da3040d798df4bbb62579b97f8b6b83749da22;p=pandora-kernel.git [SCSI] ibmvfc: Fix rport add/delete race resulting in oops Commit 43c8da907ccc656935d1085701f4db83385d8a59 introduced a race condition which can occur when adding/deleting rports. There are two possible threads now that can be deleting rports in the ibmvfc driver, which can result in list_del being called twice, resulting in an oops. This patch adds a new state to the ibmvfc_target struct to indicate the target has been removed from the list and is in the process of being deleted. Signed-off-by: Brian King Signed-off-by: James Bottomley --- Reading git-diff-tree failed