mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
ksmbd: don't update ->op_state as OPLOCK_STATE_NONE on error
[ Upstream commit cd80ce7e68 ]
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>
This commit is contained in:
parent
b06c963731
commit
3da8467097
|
|
@ -8235,7 +8235,6 @@ static void smb21_lease_break_ack(struct ksmbd_work *work)
|
|||
return;
|
||||
|
||||
err_out:
|
||||
opinfo->op_state = OPLOCK_STATE_NONE;
|
||||
wake_up_interruptible_all(&opinfo->oplock_q);
|
||||
atomic_dec(&opinfo->breaking_cnt);
|
||||
wake_up_interruptible_all(&opinfo->oplock_brk);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user