mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00

delete target/linux/bcm27xx/patches-6.1/950-0270-net-bcmgenet-Reset-RBUF-on-first-open.patch delete target/linux/generic/backport-6.1/600-v6.9-03-net-gro-add-flush-check-in-udp_gro_receive_segment.patch delete target/linux/generic/pending-6.1/681-net-bridge-fix-multicast-to-unicast-with-fraglist-GS.patch delete target/linux/generic/pending-6.1/682-net-core-reject-skb_copy-_expand-for-fraglist-GSO-sk.patch delete target/linux/generic/pending-6.1/684-net-bridge-fix-corrupted-ethernet-header-on-multicas.patch
33 lines
997 B
Diff
33 lines
997 B
Diff
From 86b7307af26834415e1ba8597319a8b64846346f Mon Sep 17 00:00:00 2001
|
|
From: Namjae Jeon <linkinjeon@kernel.org>
|
|
Date: Mon, 15 Jan 2024 10:24:54 +0900
|
|
Subject: [PATCH] ksmbd: only v2 leases handle the directory
|
|
|
|
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>
|
|
---
|
|
fs/smb/server/oplock.c | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
--- a/fs/smb/server/oplock.c
|
|
+++ b/fs/smb/server/oplock.c
|
|
@@ -1214,6 +1214,12 @@ int smb_grant_oplock(struct ksmbd_work *
|
|
return 0;
|
|
}
|
|
|
|
+ /* Only v2 leases handle the directory */
|
|
+ if (S_ISDIR(file_inode(fp->filp)->i_mode)) {
|
|
+ if (!lctx || lctx->version != 2)
|
|
+ return 0;
|
|
+ }
|
|
+
|
|
opinfo = alloc_opinfo(work, pid, tid);
|
|
if (!opinfo)
|
|
return -ENOMEM;
|