mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 06:01:23 +00:00
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:
parent
bf18ab32ff
commit
e3bfca01c1
3 changed files with 10 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue