diff options
| author | Joe Eykholt <[email protected]> | 2009-08-25 14:03:15 -0700 |
|---|---|---|
| committer | James Bottomley <[email protected]> | 2009-09-10 12:07:59 -0500 |
| commit | 25b37b981e706c6df72c28c94f7787c3ea0cd343 (patch) | |
| tree | d1b07c6ef9fc1b659056315b4ac95de27c9d0bd9 /tools/perf/scripts/python | |
| parent | 131203a1ef53f3a4deb3260031bc53c7e4db4a24 (diff) | |
[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 <[email protected]>
Signed-off-by: Robert Love <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions