]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: don't let nfs_callback_svc exit on unexpected svc_recv errors (try #2)
authorJeff Layton <jlayton@redhat.com>
Tue, 8 Apr 2008 19:40:07 +0000 (15:40 -0400)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Wed, 23 Apr 2008 20:13:42 +0000 (16:13 -0400)
commit45ae941cc20d0e90adf1ce7b118daa17020e0271
treeef5fcba37b6d9805193b77bfa10466a03326b6ed
parent3529aaf6843585637486996abf28762e63fe30c6
NFS: don't let nfs_callback_svc exit on unexpected svc_recv errors (try #2)

When svc_recv returns an unexpected error, nfs_callback_svc will print a
warning and exit. This problematic for several reasons. In particular,
it will cause the reference counts for the thread to be wrong, and no
new thread will be started until all nfs4 mounts are unmounted.

Rather than exiting on error from svc_recv, have the thread do a 1s
sleep and then retry the loop. This is unlikely to cause any harm, and
if the error turns out to be something temporary then it may be able to
recover.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfs/callback.c