cifs: use a different reconnect helper for non-cifsd threads
authorShyam Prasad N <sprasad@microsoft.com>
Tue, 15 Feb 2022 13:55:40 +0000 (13:55 +0000)
committerSteve French <stfrench@microsoft.com>
Wed, 16 Feb 2022 16:58:31 +0000 (10:58 -0600)
commit6c688ae872dbdb42d85b3a4a76e7ed5e1392dc0c
tree1e7e6c98f9767427a70173551524d12e5a744ff9
parent0c6f4ebf8835d01866eb686d47578cde80097981
cifs: use a different reconnect helper for non-cifsd threads

The cifs_demultiplexer_thread should only call cifs_reconnect.
If any other thread wants to trigger a reconnect, they can do
so by updating the server tcpStatus to CifsNeedReconnect.

The last patch attempted to use the same helper function for
both types of threads, but that causes other issues
with lock dependencies.

This patch creates a new helper for non-cifsd threads, that
will indicate to cifsd that the server needs reconnect.

Fixes: 2a05137a0575 ("cifs: mark sessions for reconnection in helper function")
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Acked-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifs_swn.c
fs/cifs/cifsproto.h
fs/cifs/connect.c
fs/cifs/dfs_cache.c
fs/cifs/netmisc.c
fs/cifs/sess.c
fs/cifs/smb1ops.c
fs/cifs/smb2ops.c
fs/cifs/transport.c