ksmbd: move oplock handling after unlock parent dir
authorNamjae Jeon <linkinjeon@kernel.org>
Mon, 20 Nov 2023 14:39:39 +0000 (23:39 +0900)
committerSteve French <stfrench@microsoft.com>
Fri, 24 Nov 2023 02:50:45 +0000 (20:50 -0600)
commit2e450920d58b4991a436c8cecf3484bcacd8e535
tree4b4c126cf1e5cfa877a0a68869952d6684d7413f
parent4274a9dc6aeb9fea66bffba15697a35ae8983b6a
ksmbd: move oplock handling after unlock parent dir

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>
fs/smb/server/smb2pdu.c