diff options
author | Jeff Layton <jlayton@primarydata.com> | 2014-07-30 14:27:23 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-08-05 16:55:09 +0200 |
commit | 98d5c7c5bd378aa1a22549200f49de3ed79d4d0a (patch) | |
tree | fd03989e734c5554461d1964e7fff3e2cd4e5d11 /fs/nfsd/state.h | |
parent | nfsd: add more granular locking to forget_openowners fault injector (diff) | |
download | linux-98d5c7c5bd378aa1a22549200f49de3ed79d4d0a.tar.xz linux-98d5c7c5bd378aa1a22549200f49de3ed79d4d0a.zip |
nfsd: add more granular locking to *_delegations fault injectors
...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/state.h')
-rw-r--r-- | fs/nfsd/state.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h index faaf6af7b28d..0a35e7bea5f7 100644 --- a/fs/nfsd/state.h +++ b/fs/nfsd/state.h @@ -493,10 +493,13 @@ u64 nfsd_inject_forget_client_openowners(struct nfsd_fault_inject_op *, struct sockaddr_storage *, size_t); u64 nfsd_inject_forget_openowners(struct nfsd_fault_inject_op *, u64); -u64 nfsd_forget_client_delegations(struct nfs4_client *, u64); -u64 nfsd_recall_client_delegations(struct nfs4_client *, u64); - -u64 nfsd_print_client_delegations(struct nfs4_client *, u64); +u64 nfsd_inject_print_delegations(struct nfsd_fault_inject_op *); +u64 nfsd_inject_forget_client_delegations(struct nfsd_fault_inject_op *, + struct sockaddr_storage *, size_t); +u64 nfsd_inject_forget_delegations(struct nfsd_fault_inject_op *, u64); +u64 nfsd_inject_recall_client_delegations(struct nfsd_fault_inject_op *, + struct sockaddr_storage *, size_t); +u64 nfsd_inject_recall_delegations(struct nfsd_fault_inject_op *, u64); #else /* CONFIG_NFSD_FAULT_INJECTION */ static inline int nfsd_fault_inject_init(void) { return 0; } static inline void nfsd_fault_inject_cleanup(void) {} |