]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ksmbd: route v2 lease breaks on the client lease channel
authorNamjae Jeon <linkinjeon@kernel.org>
Thu, 18 Jun 2026 12:33:40 +0000 (21:33 +0900)
committerSteve French <stfrench@microsoft.com>
Tue, 23 Jun 2026 01:15:04 +0000 (20:15 -0500)
commit2145945feb2c27d8e20f113ef81dc373631c4f05
treeffa6686931f535a430ed605143b52726c63b5dc9
parent1f1083c36fa11c5d9011451c7b9ab380545c72ea
ksmbd: route v2 lease breaks on the client lease channel

v2 leases are scoped by ClientGuid.  When the same client uses multiple
connections, smbtorture expects lease break notifications to be sent on
the connection associated with the client lease table, not necessarily
on the connection that owns the individual open being broken.

Keep a referenced connection in the lease table and use it for v2 lease
break notifications while it is still active.  Fall back to the open's
connection if the table connection is being released.

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