diff options
| author | Shyam Prasad N <[email protected]> | 2021-07-19 17:05:53 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2022-01-08 02:07:07 +0000 |
| commit | 080dc5e5656c1cc1cdefb501b9b645a07519f763 (patch) | |
| tree | 417e32ff394a376212b5e5d2491564c9eb27c574 /tools/perf/util/scripting-engines/trace-event-python.c | |
| parent | cifs: reconnect only the connection and not smb session where possible (diff) | |
| download | kernel-080dc5e5656c1cc1cdefb501b9b645a07519f763.tar.gz kernel-080dc5e5656c1cc1cdefb501b9b645a07519f763.zip | |
cifs: take cifs_tcp_ses_lock for status checks
While checking/updating status for tcp ses, smb ses or tcon,
we take GlobalMid_Lock. This doesn't make any sense.
Replaced it with cifs_tcp_ses_lock.
Ideally, we should take a spin lock per struct.
But since tcp ses, smb ses and tcon objects won't add up to a lot,
I think there should not be too much contention.
Also, in few other places, these are checked without locking.
Added locking for these.
Signed-off-by: Shyam Prasad N <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions
