ipc: re-enable msgmni automatic recomputing msgmni if set to negative
The enhancement as asked for by Yasunori: if msgmni is set to a negative value, register it back into the ipcns notifier chain. A new interface has been added to the notification mechanism: notifier_chain_cond_register() registers a notifier block only if not already registered. With that new interface we avoid taking care of the states changes in procfs. 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>
Showing
- include/linux/ipc_namespace.h 1 addition, 0 deletionsinclude/linux/ipc_namespace.h
- include/linux/notifier.h 4 additions, 0 deletionsinclude/linux/notifier.h
- ipc/ipc_sysctl.c 35 additions, 10 deletionsipc/ipc_sysctl.c
- ipc/ipcns_notifier.c 9 additions, 0 deletionsipc/ipcns_notifier.c
- kernel/notifier.c 38 additions, 0 deletionskernel/notifier.c
Loading
Please register or sign in to comment