kernel-ark/ipc
Nadia Derbey b6b337ad1c ipc: recompute msgmni on memory add / remove
Introduce the registration of a callback routine that recomputes msg_ctlmni
upon memory add / remove.

A single notifier block is registered in the hotplug memory chain for all the
ipc namespaces.

Since the ipc namespaces are not linked together, they have their own
notification chain: one notifier_block is defined per ipc namespace.

Each time an ipc namespace is created (removed) it registers (unregisters) its
notifier block in (from) the ipcns chain.  The callback routine registered in
the memory chain invokes the ipcns notifier chain with the IPCNS_LOWMEM event.
 Each callback routine registered in the ipcns namespace, in turn, recomputes
msgmni for the owning namespace.

Signed-off-by: Nadia Derbey <Nadia.Derbey@bull.net>
Cc: Yasunori Goto <y-goto@jp.fujitsu.com>
Cc: Matt Helsley <matthltc@us.ibm.com>
Cc: Mingming Cao <cmm@us.ibm.com>
Cc: Pierre Peiffer <pierre.peiffer@bull.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-04-29 08:06:12 -07:00
..
compat_mq.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
compat.c fix logic error in ipc compat semctl() 2007-07-06 10:23:43 -07:00
ipc_sysctl.c namespaces: move the IPC namespace under IPC_NS option 2008-02-08 09:22:23 -08:00
ipcns_notifier.c ipc: recompute msgmni on memory add / remove 2008-04-29 08:06:12 -07:00
Makefile ipc: recompute msgmni on memory add / remove 2008-04-29 08:06:12 -07:00
mqueue.c [PATCH] r/o bind mounts: elevate write count for open()s 2008-04-19 00:29:25 -04:00
msg.c ipc: recompute msgmni on memory add / remove 2008-04-29 08:06:12 -07:00
msgutil.c [PATCH] getting rid of all casts of k[cmz]alloc() calls 2006-12-13 09:05:58 -08:00
namespace.c ipc: recompute msgmni on memory add / remove 2008-04-29 08:06:12 -07:00
sem.c IPC: use ipc_buildid() directly from ipc_addid() 2008-04-29 08:06:12 -07:00
shm.c IPC: use ipc_buildid() directly from ipc_addid() 2008-04-29 08:06:12 -07:00
util.c ipc: recompute msgmni on memory add / remove 2008-04-29 08:06:12 -07:00
util.h ipc: recompute msgmni on memory add / remove 2008-04-29 08:06:12 -07:00