]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: change heuristic for selecting the client_tracking_ops
authorJeff Layton <jlayton@redhat.com>
Mon, 12 Nov 2012 20:00:49 +0000 (15:00 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 12 Nov 2012 23:55:10 +0000 (18:55 -0500)
commitd69c9e12fdee0b7d0aab1dda6f3bc780304a3b74
treee1ac2048306f446d03038c68b1b7a94a601b2735
parent71c3094252da0376cbaa8c30a0115cb03aacc38e
nfsd: change heuristic for selecting the client_tracking_ops

First, try to use the new usermodehelper upcall. It should succeed or
fail quickly, so there's little cost to doing so.

If it fails, and the legacy tracking dir exists, use that. If it
doesn't exist then fall back to using nfsdcld.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4recover.c