]> www.infradead.org Git - users/jedix/linux-maple.git/commit
lockd: discard nlmsvc_timeout
authorNeilBrown <neilb@suse.de>
Mon, 15 Jul 2024 07:14:14 +0000 (17:14 +1000)
committerChuck Lever <chuck.lever@oracle.com>
Sun, 1 Sep 2024 14:04:56 +0000 (10:04 -0400)
commit4ed9ef32606386efc562bada891d7baa16fc46b4
tree80fc169923040a27a48acad26e84bc03e1117157
parent8203ab8a9dbe7b2a060fa6bdbfe2f28cb2f73172
lockd: discard nlmsvc_timeout

nlmsvc_timeout always has the same value as (nlm_timeout * HZ), so use
that in the one place that nlmsvc_timeout is used.

In truth it *might* not always be the same as nlmsvc_timeout is only set
when lockd is started while nlm_timeout can be set at anytime via
sysctl.  I think this difference it not helpful so removing it is good.

Also remove the test for nlm_timout being 0.  This is not possible -
unless a module parameter is used to set the minimum timeout to 0, and
if that happens then it probably should be honoured.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/lockd/host.c
fs/lockd/svc.c
include/linux/lockd/lockd.h