diff options
| author | Shyam Prasad N <[email protected]> | 2022-07-06 14:29:12 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2022-07-12 15:35:48 +0000 |
| commit | 2883f4b5a0e1ac9472c7e3ae9bbdb4ea5a2117c6 (patch) | |
| tree | 2b432ca2e97cd32b0d85854d31ad7bf51dd33d6b /net/ipv4/tcp_output.c | |
| parent | cifs: fix race condition with delayed threads (diff) | |
| download | kernel-2883f4b5a0e1ac9472c7e3ae9bbdb4ea5a2117c6.tar.gz kernel-2883f4b5a0e1ac9472c7e3ae9bbdb4ea5a2117c6.zip | |
cifs: remove unnecessary locking of chan_lock while freeing session
In cifs_put_smb_ses, when we're freeing the last ref count to
the session, we need to free up each channel. At this point,
it is unnecessary to take chan_lock, since we have the last
reference to the ses.
Picking up this lock also introduced a deadlock because it calls
cifs_put_tcp_ses, which locks cifs_tcp_ses_lock.
Signed-off-by: Shyam Prasad N <[email protected]>
Acked-by: Enzo Matsumiya <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions
