summaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs.c
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2015-08-25 02:39:18 +0200
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-08-25 20:40:08 +0200
commitbbf58bf3488e41f346536aa89d62bdf2fe771128 (patch)
treec15f4869e0a3c5b4e1547260b555d863da12c0aa /fs/nfs/pnfs.c
parentNFSv4.1/flexfile: Ensure uniqueness of mirrors across layout segments (diff)
downloadlinux-bbf58bf3488e41f346536aa89d62bdf2fe771128.tar.xz
linux-bbf58bf3488e41f346536aa89d62bdf2fe771128.zip
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);