summaryrefslogtreecommitdiff
path: root/fs/nfs/pnfs.c
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2015-08-25 03:39:18 +0300
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-08-25 21:40:08 +0300
commitbbf58bf3488e41f346536aa89d62bdf2fe771128 (patch)
treec15f4869e0a3c5b4e1547260b555d863da12c0aa /fs/nfs/pnfs.c
parent266d12d42ebd2587d3d0e8c4a4e54bfb5ed29543 (diff)
downloadlinux-bbf58bf3488e41f346536aa89d62bdf2fe771128.tar.xz
NFSv4.2/pnfs: Make the layoutstats timer configurable
Allow advanced users to set the layoutstats timer in order to lengthen or shorten the period between layoutstat transmissions to the server. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/pnfs.c')
-rw-r--r--fs/nfs/pnfs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c
index 247c5a5d2d6b..3530bb703214 100644
--- a/fs/nfs/pnfs.c
+++ b/fs/nfs/pnfs.c
@@ -2285,3 +2285,7 @@ out_put:
}
EXPORT_SYMBOL_GPL(pnfs_report_layoutstat);
#endif
+
+unsigned int layoutstats_timer;
+module_param(layoutstats_timer, uint, 0644);
+EXPORT_SYMBOL_GPL(layoutstats_timer);