]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ksmbd: avoid to send duplicate lease break notifications
authorNamjae Jeon <linkinjeon@kernel.org>
Wed, 1 May 2024 12:44:02 +0000 (21:44 +0900)
committerSteve French <stfrench@microsoft.com>
Sun, 5 May 2024 04:53:35 +0000 (23:53 -0500)
commit97c2ec64667bacc49881d2b2dd9afd4d1c3fbaeb
treed3fdd3f250896b0fc546df1c554ccb0c20453f68
parentcc00bc83f26eb8f2d8d9f56b949b62fd774d8432
ksmbd: avoid to send duplicate lease break notifications

This patch fixes generic/011 when enable smb2 leases.

if ksmbd sends multiple notifications for a file, cifs increments
the reference count of the file but it does not decrement the count by
the failure of queue_work.
So even if the file is closed, cifs does not send a SMB2_CLOSE request.

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