]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ksmbd: clean up lease response flags and directory leases
authorNamjae Jeon <linkinjeon@kernel.org>
Thu, 18 Jun 2026 01:34:24 +0000 (10:34 +0900)
committerSteve French <stfrench@microsoft.com>
Tue, 23 Jun 2026 01:15:03 +0000 (20:15 -0500)
commit0fa8abc6ab6dcc571f76c1e05ad3582540fb56d5
treecd1d673e8b678e8ccab0a970a93e42df8953e031
parent5015191096db311759fef98769270336cd8b1324
ksmbd: clean up lease response flags and directory leases

Do not echo reserved v1 lease flags back to clients. For lease v2
responses, only return BREAK_IN_PROGRESS and PARENT_LEASE_KEY_SET when
they are meaningful, and preserve the parent lease key in the response.

Allow directory leases whenever the request is a valid lease v2 request,
and initialize v2 lease epochs from the first server-granted state change.

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