diff options
author | Joe Eykholt <jeykholt@cisco.com> | 2009-08-25 23:03:15 +0200 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-09-10 19:07:59 +0200 |
commit | 25b37b981e706c6df72c28c94f7787c3ea0cd343 (patch) | |
tree | d1b07c6ef9fc1b659056315b4ac95de27c9d0bd9 /include/scsi/fc_encode.h | |
parent | [SCSI] libfc: move remote port lookup for ELS requests into fc_rport.c. (diff) | |
download | linux-25b37b981e706c6df72c28c94f7787c3ea0cd343.tar.xz linux-25b37b981e706c6df72c28c94f7787c3ea0cd343.zip |
[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 <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'include/scsi/fc_encode.h')
0 files changed, 0 insertions, 0 deletions