Skip to content

Commit cd80ce7

Browse files
namjaejeonsmfrench
authored andcommitted
ksmbd: don't update ->op_state as OPLOCK_STATE_NONE on error
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>
1 parent 9ac45ac commit cd80ce7

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

fs/smb/server/smb2pdu.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8234,7 +8234,6 @@ static void smb21_lease_break_ack(struct ksmbd_work *work)
82348234
return;
82358235

82368236
err_out:
8237-
opinfo->op_state = OPLOCK_STATE_NONE;
82388237
wake_up_interruptible_all(&opinfo->oplock_q);
82398238
atomic_dec(&opinfo->breaking_cnt);
82408239
wake_up_interruptible_all(&opinfo->oplock_brk);

0 commit comments

Comments
 (0)