Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 41a74620 authored by Jeff Layton's avatar Jeff Layton Committed by Anna Schumaker
Browse files

nfs4: always reset notified flag to false before repolling for lock



We may get a notification and lose the race to another client. Ensure
that we wait again for a notification in that case.

Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent a25a4cb3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6673,6 +6673,7 @@ nfs4_retry_setlk(struct nfs4_state *state, int cmd, struct file_lock *request)
	add_wait_queue(q, &wait);

	while(!signalled()) {
		waiter.notified = false;
		status = nfs4_proc_setlk(state, cmd, request);
		if ((status != -EAGAIN) || IS_SETLK(cmd))
			break;