linux/fs/smb
Shyam Prasad N 04909192ad cifs: reconnect worker should take reference on server struct unconditionally
Reconnect worker currently assumes that the server struct
is alive and only takes reference on the server if it needs
to call smb2_reconnect.

With the new ability to disable channels based on whether the
server has multichannel disabled, this becomes a problem when
we need to disable established channels. While disabling the
channels and deallocating the server, there could be reconnect
work that could not be cancelled (because it started).

This change forces the reconnect worker to unconditionally
take a reference on the server when it runs.

Also, this change now allows smb2_reconnect to know if it was
called by the reconnect worker. Based on this, the cifs_put_tcp_session
can decide whether it can cancel the reconnect work synchronously or not.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
2023-12-06 11:04:23 -06:00
..
client cifs: reconnect worker should take reference on server struct unconditionally 2023-12-06 11:04:23 -06:00
common smb: client, common: fix fortify warnings 2023-11-30 11:17:03 -06:00
server ksmbd: don't update ->op_state as OPLOCK_STATE_NONE on error 2023-11-23 20:50:45 -06:00
Kconfig
Makefile