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:35:44 +0000 (15:35 -0800)
commit08e6c823005168f8a5d6377f6ab4d8c3b8a4bebe
tree8ebf377c37683f3204de091a0ce571b755cd09a5
parent24290ba94cd0136e417283b0dbf8fcdabcf62111
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