Re: [PATCH] ipc: optimize semget/shmget/msgget for lots of keys

From: Davidlohr Bueso
Date: Mon Aug 07 2017 - 13:33:29 EST


On Thu, 03 Aug 2017, Guillaume Knispel wrote:

In linux/init.h I saw that a pure_initcall is reserved to only
initialize variables and must have no dependency on anything else;
I interpreted that, + "pure" in the name, thinking we should not e.g.
allocate in a pure_initcall, however I see that net_ns_init() calls
kmem_cache_create() and others, so maybe we can keep ipc_ns_init() as
a pure_initcall?

Yeah, I don't see this as a limitation wrt link order. Among others,
filelocks also do this. Not to mention futexes with alloc_large_system_hash().
So lets just keep this as is.

Thanks,
Davidlohr