Commit 2883f4b
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 <sprasad@microsoft.com>
Acked-by: Enzo Matsumiya <ematsumiya@suse.de>
Signed-off-by: Steve French <stfrench@microsoft.com>1 parent 50bd7d5 commit 2883f4b
1 file changed
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1918 | 1918 | | |
1919 | 1919 | | |
1920 | 1920 | | |
1921 | | - | |
1922 | 1921 | | |
1923 | 1922 | | |
1924 | 1923 | | |
| |||
1934 | 1933 | | |
1935 | 1934 | | |
1936 | 1935 | | |
1937 | | - | |
1938 | 1936 | | |
1939 | 1937 | | |
1940 | 1938 | | |
| |||
0 commit comments