]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix noisy NFSv4 server printf.
authorRick Macklem <rmacklem@FreeBSD.org>
Mon, 6 Apr 2020 23:21:39 +0000 (23:21 +0000)
committerRick Macklem <rmacklem@FreeBSD.org>
Mon, 6 Apr 2020 23:21:39 +0000 (23:21 +0000)
commit76fd19b0a2a878e70c0fa789165d91e944cf42b2
tree9edfeac58ce219cb512f627cf9a3b28b853d68d1
parent02bde5cf13354d39157b9f43fb99ff0d34bf5b35
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