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)
commit2d77bf0a55d64559adb2d48a37bc7e876d6adc11
treee1ac2048306f446d03038c68b1b7a94a601b2735
parent2873d2147e1e14b82367bde14354a011ffda0496
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