]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: don't update ->op_state as OPLOCK_STATE_NONE on error
authorNamjae Jeon <linkinjeon@kernel.org>
Sun, 31 Dec 2023 07:13:25 +0000 (16:13 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jan 2024 14:18:36 +0000 (15:18 +0100)
commit52a32eafd0a5982068116d4e6a5fac4298075402
tree6fe79074421f9f16bbe94033e400955ab31a1438
parent0bc46c2370ee8e0e023f8f3773c6b6c9d63fc41e
ksmbd: don't update ->op_state as OPLOCK_STATE_NONE on error

[ Upstream commit cd80ce7e68f1624ac29cd0a6b057789d1236641e ]

ksmbd set ->op_state as OPLOCK_STATE_NONE on lease break ack error.
op_state of lease should not be updated because client can send lease
break ack again. This patch fix smb2.lease.breaking2 test failure.

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