]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit673a28fcd766be3b6d0fffb4379a77b63260792d
tree47a3002481866e71bd9f6c42f16344954e5b1802
parenta42bdca3cd2e19a2d09e6f3031c9e05b423f8656
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