cifs: mark sessions for reconnection in helper function
authorShyam Prasad N <sprasad@microsoft.com>
Tue, 8 Feb 2022 17:10:02 +0000 (17:10 +0000)
committerSteve French <stfrench@microsoft.com>
Wed, 9 Feb 2022 04:13:52 +0000 (22:13 -0600)
commit2a05137a0575b7d1006bdf4c1beeee9e391e22a0
tree47a3002481866e71bd9f6c42f16344954e5b1802
parent52492ff5c583036306bc422a83e246c971af387a
cifs: mark sessions for reconnection in helper function

Today we have the code to mark connections and sessions
(and tcons) for reconnect clubbed with the code to close
the socket and abort all mids in the same function.

Sometimes, we need to mark connections and sessions
outside cifsd thread. So as a part of this change, I'm
splitting this function into two different functions and
calling them one after the other in cifs_reconnect.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c