diff options
| author | Weston Andros Adamson <dros@netapp.com> | 2012-02-17 13:15:24 -0500 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-02-17 13:39:47 -0500 |
| commit | 0a702195234eb77c4097148285cccf7f095de9cf (patch) | |
| tree | 40fead6b131fb3c24e3cd85e39fbba8057196457 /include/linux/sunrpc | |
| parent | b6bf6e7d6f6fae1ddcae9e02dfe676bdc8fe892c (diff) | |
NFS: include filelayout DS rpc stats in mountstats
Include RPC statistics from all data servers in /proc/self/mountstats for pNFS
filelayout mounts.
Signed-off-by: Weston Andros Adamson <dros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/sunrpc')
| -rw-r--r-- | include/linux/sunrpc/metrics.h | 6 | ||||
| -rw-r--r-- | include/linux/sunrpc/sched.h | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/sunrpc/metrics.h b/include/linux/sunrpc/metrics.h index b6edbc0ea83d..1565bbe86d51 100644 --- a/include/linux/sunrpc/metrics.h +++ b/include/linux/sunrpc/metrics.h | |||
| @@ -74,14 +74,16 @@ struct rpc_clnt; | |||
| 74 | #ifdef CONFIG_PROC_FS | 74 | #ifdef CONFIG_PROC_FS |
| 75 | 75 | ||
| 76 | struct rpc_iostats * rpc_alloc_iostats(struct rpc_clnt *); | 76 | struct rpc_iostats * rpc_alloc_iostats(struct rpc_clnt *); |
| 77 | void rpc_count_iostats(struct rpc_task *); | 77 | void rpc_count_iostats(const struct rpc_task *, |
| 78 | struct rpc_iostats *); | ||
| 78 | void rpc_print_iostats(struct seq_file *, struct rpc_clnt *); | 79 | void rpc_print_iostats(struct seq_file *, struct rpc_clnt *); |
| 79 | void rpc_free_iostats(struct rpc_iostats *); | 80 | void rpc_free_iostats(struct rpc_iostats *); |
| 80 | 81 | ||
| 81 | #else /* CONFIG_PROC_FS */ | 82 | #else /* CONFIG_PROC_FS */ |
| 82 | 83 | ||
| 83 | static inline struct rpc_iostats *rpc_alloc_iostats(struct rpc_clnt *clnt) { return NULL; } | 84 | static inline struct rpc_iostats *rpc_alloc_iostats(struct rpc_clnt *clnt) { return NULL; } |
| 84 | static inline void rpc_count_iostats(struct rpc_task *task) {} | 85 | static inline void rpc_count_iostats(const struct rpc_task *task, |
| 86 | struct rpc_iostats *stats) {} | ||
| 85 | static inline void rpc_print_iostats(struct seq_file *seq, struct rpc_clnt *clnt) {} | 87 | static inline void rpc_print_iostats(struct seq_file *seq, struct rpc_clnt *clnt) {} |
| 86 | static inline void rpc_free_iostats(struct rpc_iostats *stats) {} | 88 | static inline void rpc_free_iostats(struct rpc_iostats *stats) {} |
| 87 | 89 | ||
diff --git a/include/linux/sunrpc/sched.h b/include/linux/sunrpc/sched.h index 22dfc24013b6..dc0c3cc3ada3 100644 --- a/include/linux/sunrpc/sched.h +++ b/include/linux/sunrpc/sched.h | |||
| @@ -103,6 +103,7 @@ typedef void (*rpc_action)(struct rpc_task *); | |||
| 103 | struct rpc_call_ops { | 103 | struct rpc_call_ops { |
| 104 | void (*rpc_call_prepare)(struct rpc_task *, void *); | 104 | void (*rpc_call_prepare)(struct rpc_task *, void *); |
| 105 | void (*rpc_call_done)(struct rpc_task *, void *); | 105 | void (*rpc_call_done)(struct rpc_task *, void *); |
| 106 | void (*rpc_count_stats)(struct rpc_task *, void *); | ||
| 106 | void (*rpc_release)(void *); | 107 | void (*rpc_release)(void *); |
| 107 | }; | 108 | }; |
| 108 | 109 | ||
