]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: only v2 leases handle the directory
authorNamjae Jeon <linkinjeon@kernel.org>
Mon, 15 Jan 2024 01:24:54 +0000 (10:24 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jan 2024 23:27:41 +0000 (15:27 -0800)
commitc866866c795296d3637ab0d48a3d8a3ef5d6f4a3
tree74944bfa5e0a156a2675f0324f5f9b62a023b798
parent380965e48e9c32ee4263c023e1d830ea7e462ed1
ksmbd: only v2 leases handle the directory

commit 77bebd186442a7d703b796784db7495129cc3e70 upstream.

When smb2 leases is disable, ksmbd can send oplock break notification
and cause wait oplock break ack timeout. It may appear like hang when
accessing a directory. This patch make only v2 leases handle the
directory.

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