lkml.org 
[lkml]   [2008]   [Jun]   [6]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateFri, 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.


\
 
 \ /
  Last update: 2008-06-06 08:21    [from the cache]
©2003-2008