Revert "cifs: reconnect work should have reference on server struct"
authorShyam Prasad N <sprasad@microsoft.com>
Wed, 6 Dec 2023 16:37:37 +0000 (16:37 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Feb 2024 00:18:48 +0000 (16:18 -0800)
commit3a0ef868fb8aa0f5f9d05e1e4140903bfc1d1204
tree503ac545462bd334dd87193d854022810d8002ec
parent3e1615361b6fa6e6e0bfae0efb3a8c2255ac101f
Revert "cifs: reconnect work should have reference on server struct"

[ Upstream commit 823342524868168bf681f135d01b4ae10f5863ec ]

This reverts commit 19a4b9d6c372cab6a3b2c9a061a236136fe95274.

This earlier commit was making an assumption that each mod_delayed_work
called for the reconnect work would result in smb2_reconnect_server
being called twice. This assumption turns out to be untrue. So reverting
this change for now.

I will submit a follow-up patch to fix the actual problem in a different
way.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Stable-dep-of: 78e727e58e54 ("cifs: update iface_last_update on each query-and-update")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/client/connect.c
fs/smb/client/smb2pdu.c