diff options
author | Jeff Layton <jlayton@primarydata.com> | 2014-07-30 14:27:17 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-08-05 16:55:04 +0200 |
commit | 7ec0e36f1a35c9c241726f6639178fafda654e09 (patch) | |
tree | 89f8dde561df816824f8dcf861b4ba23c2ba06a0 /fs/nfsd/fault_inject.c | |
parent | nfsd: abstract out the get and set routines into the fault injection ops (diff) | |
download | linux-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.c | 3 |
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", |