From: Joe Eykholt Date: Tue, 25 Aug 2009 21:01:23 +0000 (-0700) Subject: [SCSI] libfc: fix rport event race between READY and LOGO X-Git-Tag: v2.6.32-rc1~689^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00fea930d404b9a9039291d5a61975e6c2ea974e;p=pandora-kernel.git [SCSI] libfc: fix rport event race between READY and LOGO When a remote port becomes ready and a LOGO is received before the READY event is in rport_work waiting on the mutex, the event is changed to LOGO and the work queued, so both the calls to rport_work see the LOGO event, and both try to do the list_del(), causing a crash. Don't change the event if it is already set. Signed-off-by: Joe Eykholt Signed-off-by: Robert Love Signed-off-by: James Bottomley --- Reading git-diff-tree failed