summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/fault_inject.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@primarydata.com>2014-07-30 14:27:21 +0200
committerJ. Bruce Fields <bfields@redhat.com>2014-08-05 16:55:07 +0200
commit016200c37341b62df14ec642b0b30b4b70bc09af (patch)
tree6743fbe072309619c3f27f81754385cc86deebdd /fs/nfsd/fault_inject.c
parentnfsd: add a list_head arg to nfsd_foreach_client_lock (diff)
downloadlinux-016200c37341b62df14ec642b0b30b4b70bc09af.tar.xz
linux-016200c37341b62df14ec642b0b30b4b70bc09af.zip
nfsd: add more granular locking to forget_locks fault injector
...instead of relying on 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.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/nfsd/fault_inject.c b/fs/nfsd/fault_inject.c
index 76ecdff37ea2..a444d821d2a5 100644
--- a/fs/nfsd/fault_inject.c
+++ b/fs/nfsd/fault_inject.c
@@ -140,11 +140,9 @@ static struct nfsd_fault_inject_op inject_ops[] = {
},
{
.file = "forget_locks",
- .get = nfsd_inject_get,
- .set_val = nfsd_inject_set,
- .set_clnt = nfsd_inject_set_client,
- .forget = nfsd_forget_client_locks,
- .print = nfsd_print_client_locks,
+ .get = nfsd_inject_print_locks,
+ .set_val = nfsd_inject_forget_locks,
+ .set_clnt = nfsd_inject_forget_client_locks,
},
{
.file = "forget_openowners",