]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cifs: change_conf needs to be called for session setup
authorShyam Prasad N <sprasad@microsoft.com>
Mon, 30 Mar 2026 10:49:59 +0000 (16:19 +0530)
committerSteve French <stfrench@microsoft.com>
Wed, 29 Apr 2026 22:26:37 +0000 (17:26 -0500)
commitc208a2b95811d6e1ebae65d0d2fc13f73707f8e7
tree9a12e6db58e1af7cc2885c1df5b206d8ab6b82d8
parent8e13b1b4093e0cbcb3dc2906c13b1fdc95cdf0a0
cifs: change_conf needs to be called for session setup

Today we skip calling change_conf for negotiates and session setup
requests. This can be a problem for mchan as the immediate next call
after session setup could be due to an I/O that is made on the
mount point. For single channel, this is not a problem as
there will be several calls after setting up session.

This change enforces calling change_conf when the total credits contain
enough for reservations for echoes and oplocks. We expect this to happen
during the last session setup response. This way, echoes and oplocks are
not disabled before the first request to the server. So if that first
request is an open, it does not need to disable requesting leases.

Cc: <stable@vger.kernel.org>
Reviewed-by: Bharath SM <bharathsm@microsoft.com>
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smb2ops.c