]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nfsd: Reduce the callback timeout to 800msec
authorRick Macklem <rmacklem@FreeBSD.org>
Tue, 18 May 2021 23:17:58 +0000 (16:17 -0700)
committerRick Macklem <rmacklem@FreeBSD.org>
Tue, 18 May 2021 23:17:58 +0000 (16:17 -0700)
commitfc0dc94029df8150301b925bda690b20d9d0bcbf
treef7ab3b05f33da1dc39648fd3de374b8cae120005
parentb3d4c70dc60f1913f2363751b905b562c39ca126
nfsd: Reduce the callback timeout to 800msec

Recent discussion on the nfsv4@ietf.org mailing list confirmed
that an NFSv4 server should reply to an RPC in less than 1second.
If an NFSv4 RPC requires a delegation be recalled,
the server will attempt a CB_RECALL callback.
If the client is not responsive, the RPC reply will be delayed
until the callback times out.
Without this patch, the timeout is set to 4 seconds (set in
ticks, but used as seconds), resulting in the RPC reply taking over 4sec.
This patch redefines the constant as being in milliseconds and it
implements that for a value of 800msec, to ensure the RPC
reply is sent in less than 1second.

This patch only affects mounts from clients when delegations
are enabled on the server and the client is unresponsive to callbacks.

MFC after: 2 weeks
sys/fs/nfs/nfs.h
sys/fs/nfs/nfs_commonkrpc.c