From: Joe Eykholt Date: Tue, 25 Aug 2009 21:03:15 +0000 (-0700) Subject: [SCSI] libfc: fix: rport_recv_req needs disc_mutex when calling rport_lookup X-Git-Tag: v2.6.32-rc1~689^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25b37b981e706c6df72c28c94f7787c3ea0cd343;p=pandora-kernel.git [SCSI] libfc: fix: rport_recv_req needs disc_mutex when calling rport_lookup The rport_lookup function must be called while holding the disc_mutex. Otherwise, the rdata could be deleted just after that by another thread. All callers now check the state after grabbing the rdata rp_mutex. Even though rport_lookup skips ports in DELETE state, it does that without holding the rdata rp_mutex, so that the state may change. Signed-off-by: Joe Eykholt Signed-off-by: Robert Love Signed-off-by: James Bottomley --- Reading git-diff-tree failed