cifs: check only tcon status on tcon related functions
authorShyam Prasad N <sprasad@microsoft.com>
Thu, 16 Mar 2023 10:45:12 +0000 (10:45 +0000)
committerSteve French <stfrench@microsoft.com>
Fri, 17 Mar 2023 18:22:22 +0000 (13:22 -0500)
commit2f0e4f0342201fe2228fcc2301cc2b42ae04b8e3
treeff9f3007acd94a8ea7da0e2636ed44f0e3c6c98e
parent38e04b3e4240a6d8fb43129ebad41608db64bc6f
cifs: check only tcon status on tcon related functions

We had a couple of checks for session in cifs_tree_connect
and cifs_mark_open_files_invalid, which were unnecessary.
And that was done with ses_lock. Changed that to tc_lock too.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c
fs/cifs/dfs.c
fs/cifs/dfs_cache.c
fs/cifs/file.c