OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 0/5] SUNRPC: make caches network namespace aware
Re: [PATCH 2/5] SUNRPC: create unix gid cache per network namespace [message #44977 is a reply to message #44968] Thu, 19 January 2012 16:24 Go to previous messageGo to previous message
bfields is currently offline  bfields
Messages: 107
Registered: September 2007
Senior Member
On Thu, Jan 19, 2012 at 06:49:14PM +0400, Stanislav Kinsbursky wrote:
> This patch makes unix_gid_cache cache detail allocated and registered per
> network namespace context.
> Thus with this patch unix_gid_cache contents for network namespace "X" are
> controlled from proc file system mount for the same network namespace "X".

I'm confused--this seems half-done. I see that you're creating the gid
caches dynamically, but there's still this static definition:

> struct cache_detail unix_gid_cache = {
> .owner = THIS_MODULE,
> .hash_size = GID_HASHMAX,
> - .hash_table = gid_table,
> .name = "auth.unix.gid",
> .cache_put = unix_gid_put,
> .cache_upcall = unix_gid_upcall,

And it looks like unix_gid_lookup is still using this static
unix_gid_cache. Maybe I'm missing something....

--b.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH] NFS: decode destination address in proper network namespace context
Next Topic: [PATCH] NFS: remove unused nfs4_find_client_no_ident function
Goto Forum:
  


Current Time: Wed Aug 27 01:38:06 GMT 2025

Total time taken to generate the page: 0.16658 seconds