]> www.infradead.org Git - users/dwmw2/linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:57:40 +0000 (13:57 +0200)
commitdd9ccff8c8980bf9ea7f25e83eeb28154f902920
tree875a00b3ecd6fb66273b3e60eac4074ff7065157
parent9fa8e3e691b344348651d8b1f52666be70138724
cifs: use a different reconnect helper for non-cifsd threads

[ Upstream commit dca65818c80cf06e0f08ba2cf94060a5236e73c2 ]

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>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/cifs_swn.c
fs/cifs/cifsproto.h
fs/cifs/connect.c
fs/cifs/dfs_cache.c
fs/cifs/smb1ops.c
fs/cifs/transport.c