[RFC -mm 4/6] sysv ipc: re-enable msgmnb automatic recomputing ifset to negative

From: Solofo.Ramangalahy
Date: Fri Jun 06 2008 - 02:18:55 EST


From: Solofo Ramangalahy <Solofo.Ramangalahy@xxxxxxxx>

When a negative value is put in /proc/sys/kernel/msgmnb
automatic recomputing is re-enabled.

Signed-off-by: Solofo Ramangalahy <Solofo.Ramangalahy@xxxxxxxx>

---
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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/