]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Disable attempts to establish a callback connection from the
authorrmacklem <rmacklem@FreeBSD.org>
Thu, 9 Dec 2010 19:02:23 +0000 (19:02 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Thu, 9 Dec 2010 19:02:23 +0000 (19:02 +0000)
commit0c8713f91e759286a8d540d02e44e0310785b2e9
tree730e351c90af740e66374ca3db58f0c9bd332fe2
parentac0ae73cc591fb887a0639603b9a2675a9c2f5ea
Disable attempts to establish a callback connection from the
experimental NFSv4 server to a NFSv4 client when delegations are not
being issued, even if the client advertises a callback path.
This avoids a problem where a Linux client advertises a
callback path that doesn't work, due to a firewall, and then
times out an Open attempt before the FreeBSD server gives up
its callback connection attempt. (Suggested by
drb at karlov.mff.cuni.cz to fix the Linux client problem that
he reported on the fs-stable mailing list.)
The server should probably have
a 1sec timeout on callback connection attempts when there are
no delegations issued to the client, but that patch will require
changes to the krpc and this serves as a work around until then.

Tested by: drb at karlov.mff.cuni.cz
MFC after: 5 days
sys/fs/nfsserver/nfs_nfsdstate.c