b6b337ad1c
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>
12 lines
384 B
Makefile
12 lines
384 B
Makefile
#
|
|
# Makefile for the linux ipc.
|
|
#
|
|
|
|
obj-$(CONFIG_SYSVIPC_COMPAT) += compat.o
|
|
obj_mem-$(CONFIG_MEMORY_HOTPLUG) += ipcns_notifier.o
|
|
obj-$(CONFIG_SYSVIPC) += util.o msgutil.o msg.o sem.o shm.o $(obj_mem-y)
|
|
obj-$(CONFIG_SYSVIPC_SYSCTL) += ipc_sysctl.o
|
|
obj_mq-$(CONFIG_COMPAT) += compat_mq.o
|
|
obj-$(CONFIG_POSIX_MQUEUE) += mqueue.o msgutil.o $(obj_mq-y)
|
|
obj-$(CONFIG_IPC_NS) += namespace.o
|
|
|