]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ksmbd: fix lease break and ack state handling
authorNamjae Jeon <linkinjeon@kernel.org>
Thu, 18 Jun 2026 01:33:53 +0000 (10:33 +0900)
committerSteve French <stfrench@microsoft.com>
Tue, 23 Jun 2026 01:15:03 +0000 (20:15 -0500)
commit5015191096db311759fef98769270336cd8b1324
treee9d69a97bff0b1991080dca8cfc8a2c837ffaa80
parentfa111daae1a02dbff5693dfc12f368bccd9eb5f4
ksmbd: fix lease break and ack state handling

Do not skip valid lease states containing WRITE_CACHING when breaking
level-II/read leases for writes and truncates.

Handle lease break acknowledgments according to the SMB2 rule that the
acknowledged state must be a subset of the server's break target. Apply
the acknowledged state directly and keep the break pending on failed ACKs.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/oplock.c
fs/smb/server/smb2pdu.c