]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix noisy NFSv4 server printf.
authorrmacklem <rmacklem@FreeBSD.org>
Mon, 6 Apr 2020 23:21:39 +0000 (23:21 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Mon, 6 Apr 2020 23:21:39 +0000 (23:21 +0000)
commit856a745f37632989173fbb8280d122fad7a03e4a
tree9edfeac58ce219cb512f627cf9a3b28b853d68d1
parente08f7da38459b29b19fd5766eb68864e203a1c93
Fix noisy NFSv4 server printf.

Peter reported that his dmesg was getting cluttered with
nfsrv_cache_session: no session
messages when he rebooted his NFS server and they did not seem useful.
He was correct, in that these messages are "normal" and expected when
NFSv4.1 or NFSv4.2 are mounted and the server is rebooted.
This patch silences the printf() during the grace period after a reboot.
It also adds the client IP address to the printf(), so that the message
is more useful if/when it occurs. If this happens outside of the
server's grace period, it does indicate something is not working correctly.
Instead of adding yet another nd_XXX argument, the arguments for
nfsrv_cache_session() were simplified to take a "struct nfsrv_descript *".

Reported by: pen@lysator.liu.se
MFC after: 2 weeks
sys/fs/nfs/nfs_var.h
sys/fs/nfsserver/nfs_nfsdkrpc.c
sys/fs/nfsserver/nfs_nfsdstate.c