]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: move oplock handling after unlock parent dir
authorNamjae Jeon <linkinjeon@kernel.org>
Sun, 31 Dec 2023 07:13:22 +0000 (16:13 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jan 2024 14:18:35 +0000 (15:18 +0100)
commit013bf453af0d491746f75e65da82322df898b2f8
treeafb2bc2519d242d4d6429118f00c10fc29f6daa4
parent20dd92c237566627da03e0614545fbaf90d1cee6
ksmbd: move oplock handling after unlock parent dir

[ Upstream commit 2e450920d58b4991a436c8cecf3484bcacd8e535 ]

ksmbd should process secound parallel smb2 create request during waiting
oplock break ack. parent lock range that is too large in smb2_open() causes
smb2_open() to be serialized. Move the oplock handling to the bottom of
smb2_open() and make it called after parent unlock. This fixes the failure
of smb2.lease.breaking1 testcase.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/server/smb2pdu.c