]> git.baikalelectronics.ru Git - kernel.git/commit
Do 'shm_init_ns()' in an early pure_initcall
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 5 Aug 2011 05:35:59 +0000 (19:35 -1000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 5 Aug 2011 05:35:59 +0000 (19:35 -1000)
commitd089df7c2dd167b0f1c110b5c2367cd7fe26dacc
treece8291a62b08810cffacf7a0d377fc06c477aa44
parentede5a883bf02af9f78f10229eef1903f105853cd
Do 'shm_init_ns()' in an early pure_initcall

This isn't really critical any more, since other patches (commit
3267cc5fb6f7: "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 e41c8904ac91 ("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: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
ipc/shm.c