summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/fault_inject.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@primarydata.com>2014-07-30 14:27:17 +0200
committerJ. Bruce Fields <bfields@redhat.com>2014-08-05 16:55:04 +0200
commit7ec0e36f1a35c9c241726f6639178fafda654e09 (patch)
tree89f8dde561df816824f8dcf861b4ba23c2ba06a0 /fs/nfsd/fault_inject.c
parentnfsd: abstract out the get and set routines into the fault injection ops (diff)
downloadlinux-7ec0e36f1a35c9c241726f6639178fafda654e09.tar.xz
linux-7ec0e36f1a35c9c241726f6639178fafda654e09.zip
nfsd: add a forget_clients "get" routine with proper locking
Add a new "get" routine for forget_clients that relies on the client_lock instead of the client_mutex. Signed-off-by: Jeff Layton <jlayton@primarydata.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/fault_inject.c')
-rw-r--r--fs/nfsd/fault_inject.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfsd/fault_inject.c b/fs/nfsd/fault_inject.c
index b1159900d934..a0387fd47e14 100644
--- a/fs/nfsd/fault_inject.c
+++ b/fs/nfsd/fault_inject.c
@@ -134,11 +134,10 @@ void nfsd_fault_inject_cleanup(void)
static struct nfsd_fault_inject_op inject_ops[] = {
{
.file = "forget_clients",
- .get = nfsd_inject_get,
+ .get = nfsd_inject_print_clients,
.set_val = nfsd_inject_set,
.set_clnt = nfsd_inject_set_client,
.forget = nfsd_forget_client,
- .print = nfsd_print_client,
},
{
.file = "forget_locks",