Author: rmacklem Date: Thu Apr 16 16:26:35 2009 New Revision: 191145 URL: http://svn.freebsd.org/changeset/base/191145
Log: Added a field to the SVCXPRT structure that the nfsv4 server can use to identify if the socket is the same one that a cached request came in on. It is set by nfsrvd_addsock() to a unique value generated by incrementing an unsigned 64bit static variable for each assignment and then the value of xp_sockref is tested to see if it is equal to the value that was saved with the cached reply. Submitted by: rmacklem Reviewed by: dfr Approved by: kib (mentor) Modified: head/sys/rpc/svc.h Modified: head/sys/rpc/svc.h ============================================================================== --- head/sys/rpc/svc.h Thu Apr 16 14:43:59 2009 (r191144) +++ head/sys/rpc/svc.h Thu Apr 16 16:26:35 2009 (r191145) @@ -165,6 +165,7 @@ typedef struct __rpc_svcxprt { int xp_type; /* transport type */ int xp_idletimeout; /* idle time before closing */ time_t xp_lastactive; /* time of last RPC */ + u_int64_t xp_sockref; /* set by nfsv4 to identify socket */ #else int xp_fd; u_short xp_port; /* associated port number */ _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"