]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
svcgssd: use the actual context expiration for cache
authorKevin Coffman <kwc@citi.umich.edu>
Thu, 11 Dec 2008 16:43:31 +0000 (11:43 -0500)
committerSteve Dickson <steved@redhat.com>
Thu, 11 Dec 2008 16:43:31 +0000 (11:43 -0500)
Instead of sending down an infinite expiration value for the rsi(init) and
rsc(context) cache entries, use a reasonable value for the rsi cache, and
the actual context expiration value for the rsc cache.

Prompted by a proposal from Neil Brown as a result of a complaint of a
server running out of kernel memory when under heavy load of rpcsec_gss
traffic.  Neil's original patch used one minute for the init cache and one
hour for the context cache.  Using the actual expiration time prevents
unnecessary context re-negotiation.

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Signed-off-by: Steve Dickson <steved@redhat.com>

No differences found