Messages in this thread Patch in this message |  | | | Date | Fri, 06 Jun 2008 08:09:59 +0200 | | From | <> | | Subject | [RFC -mm 4/6] sysv ipc: re-enable msgmnb automatic recomputing if set to negative |
From: Solofo Ramangalahy <Solofo.Ramangalahy@bull.net>
When a negative value is put in /proc/sys/kernel/msgmnb
automatic recomputing is re-enabled.
Signed-off-by: Solofo Ramangalahy <Solofo.Ramangalahy@bull.net>
---
ipc/ipc_sysctl.c | 1 +
1 file changed, 1 insertion(+)
Index: b/ipc/ipc_sysctl.c
===================================================================
--- a/ipc/ipc_sysctl.c
+++ b/ipc/ipc_sysctl.c
@@ -42,6 +42,7 @@ static void tunable_set_callback(int val
* Re-enable automatic recomputing only if not already
* enabled.
*/
+ recompute_msgmnb(current->nsproxy->ipc_ns);
recompute_msgmni(current->nsproxy->ipc_ns);
cond_register_ipcns_notifier(current->nsproxy->ipc_ns);
}
--
Solofo Ramangalahy
Bull SA.
|  |