SUNRPC: rework cache upcall logic
For most of SUNRPC caches (except NFS DNS cache) cache_detail->cache_upcall is redundant since all that it's implementations are doing is calling sunrpc_cache_pipe_upcall() with proper function address argument. Cache request function address is now stored on cache_detail structure and thus all the code can be simplified. Now, for those cache details, which doesn't have cache_upcall callback (the only one, which still has is nfs_dns_resolve_template) sunrpc_cache_pipe_upcall will be called instead. Signed-off-by:Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by:
J. Bruce Fields <bfields@redhat.com>
Showing
- fs/nfsd/export.c 0 additions, 12 deletionsfs/nfsd/export.c
- fs/nfsd/nfs4idmap.c 0 additions, 14 deletionsfs/nfsd/nfs4idmap.c
- net/sunrpc/auth_gss/svcauth_gss.c 0 additions, 7 deletionsnet/sunrpc/auth_gss/svcauth_gss.c
- net/sunrpc/cache.c 7 additions, 4 deletionsnet/sunrpc/cache.c
- net/sunrpc/svcauth_unix.c 0 additions, 12 deletionsnet/sunrpc/svcauth_unix.c
Loading
Please register or sign in to comment