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: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
Jeff Layton 2018-03-18 08:37:01 -04:00 коммит произвёл Anna Schumaker
Родитель a25a4cb3af
Коммит 41a7462018
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -6673,6 +6673,7 @@ nfs4_retry_setlk(struct nfs4_state *state, int cmd, struct file_lock *request)
add_wait_queue(q, &wait); add_wait_queue(q, &wait);
while(!signalled()) { while(!signalled()) {
waiter.notified = false;
status = nfs4_proc_setlk(state, cmd, request); status = nfs4_proc_setlk(state, cmd, request);
if ((status != -EAGAIN) || IS_SETLK(cmd)) if ((status != -EAGAIN) || IS_SETLK(cmd))
break; break;