]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: Do not convert nfs_idmap_cache_timeout to jiffies
authorJan Chochol <jan@chochol.info>
Fri, 5 Jan 2018 07:39:12 +0000 (08:39 +0100)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 18 Jan 2018 20:10:47 +0000 (15:10 -0500)
commit3d50a13ce4ba045c12722738f7509e87de9009b0
tree4b1f214e7579e11f2a9b5c70b7c82869368274c1
parenta8f4be76a7b929520273d724649766c52f7dd3c7
nfs: Do not convert nfs_idmap_cache_timeout to jiffies

Since commit a1eb0af6c2b6 ("NFS: Store the legacy idmapper result in the
keyring") nfs_idmap_cache_timeout changed units from jiffies to seconds.
Unfortunately sysctl interface was not updated accordingly.

As a effect updating /proc/sys/fs/nfs/idmap_cache_timeout with some
value will incorrectly multiply this value by HZ.
Also reading /proc/sys/fs/nfs/idmap_cache_timeout will show real value
divided by HZ.

Fixes: a1eb0af6c2b6 ("NFS: Store the legacy idmapper result in the keyring")
Signed-off-by: Jan Chochol <jan@chochol.info>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4sysctl.c