sunrpc: Make xprt auth cache release work with the xprt
This is done in order to facilitate getting the ip_map_cache from which to put the ip_map. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:

committed by
J. Bruce Fields

parent
bf18ab32ff
commit
e3bfca01c1
@@ -472,10 +472,13 @@ ip_map_cached_put(struct svc_rqst *rqstp, struct ip_map *ipm)
|
||||
}
|
||||
|
||||
void
|
||||
svcauth_unix_info_release(void *info)
|
||||
svcauth_unix_info_release(struct svc_xprt *xpt)
|
||||
{
|
||||
struct ip_map *ipm = info;
|
||||
cache_put(&ipm->h, &ip_map_cache);
|
||||
struct ip_map *ipm;
|
||||
|
||||
ipm = xpt->xpt_auth_cache;
|
||||
if (ipm != NULL)
|
||||
cache_put(&ipm->h, &ip_map_cache);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
Reference in New Issue
Block a user