Commit 140d0b21 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

Do 'shm_init_ns()' in an early pure_initcall

This isn't really critical any more, since other patches (commit
298507d4: "shm: optimize exit_shm()") have caused us to not actually
need to touch the rw_mutex unless there are actual shm segments
associated with the namespace, but we really should do tne shm_init_ns()
earlier than we do now.

This, together with commit 288d5abe

 ("Boot up with usermodehelper
disabled") will mean that we really do initialize the initial ipc
namespace data structure before we run any tasks.
Tested-by: default avatarMarc Zyngier <>
Signed-off-by: default avatarLinus Torvalds <>
parent 24f0eed2
......@@ -105,9 +105,16 @@ void shm_exit_ns(struct ipc_namespace *ns)
void __init shm_init (void)
static int __init ipc_ns_init(void)
return 0;
void __init shm_init (void)
#if BITS_PER_LONG <= 32
" key shmid perms size cpid lpid nattch uid gid cuid cgid atime dtime ctime rss swap\n",
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment