]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2024 10:02:36 +0000 (12:02 +0200)
commit329081691fc2279d331f69c72e8af3aa702b4bce
tree58ca3c46557d10d88da8d28d944fec001bf8c0f5
parentb2ed54957161928a29c68ecd601d2742c3c7bbf6
ksmbd: avoid to send duplicate lease break notifications

commit 97c2ec64667bacc49881d2b2dd9afd4d1c3fbaeb upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/smb/server/oplock.c