]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: use safe, interruptible sleeps when waiting to retry LOCK
authorJeff Layton <jlayton@redhat.com>
Sat, 17 Sep 2016 22:17:33 +0000 (18:17 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 22 Sep 2016 17:56:04 +0000 (13:56 -0400)
commitfde945378a68061cc1ce40a8c57956f90b1f3981
tree4ce0d4910a6be281554f0f91d46a51e3f79c475c
parent09b9b9944db65601ba1a56116f36a2e3e08f7b4b
nfs: use safe, interruptible sleeps when waiting to retry LOCK

We actually want to use TASK_INTERRUPTIBLE sleeps when we're in the
process of polling for a NFSv4 lock. If there is a signal pending when
the task wakes up, then we'll be returning an error anyway. So, we might
as well wake up immediately for non-fatal signals as well. That allows
us to return to userland more quickly in that case, but won't change the
error that userland sees.

Also, there is no need to use the *_unsafe sleep variants here, as no
vfs-layer locks should be held at this point.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4proc.c