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:58 +0200
From<>
Subject[RFC -mm 3/6] sysv ipc: do not recompute msgmni anymore if explicitely set by user
From: Solofo Ramangalahy <Solofo.Ramangalahy@bull.net>

To disable recomputation when user explicitely set a value,
reuse the callback defined for msgmni for msgmnb.

As msgmni and msgmnb are correlated, user settings of any of the two
disable recomputation of both, for now. This will be refined in a
later patch.

Signed-off-by: Solofo Ramangalahy <Solofo.Ramangalahy@bull.net>

---
 ipc/ipc_sysctl.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Index: b/ipc/ipc_sysctl.c
===================================================================
--- a/ipc/ipc_sysctl.c
+++ b/ipc/ipc_sysctl.c
@@ -210,8 +210,8 @@ static struct ctl_table ipc_kern_table[]
 		.data		= &init_ipc_ns.msg_ctlmnb,
 		.maxlen		= sizeof (init_ipc_ns.msg_ctlmnb),
 		.mode		= 0644,
-		.proc_handler	= proc_ipc_dointvec,
-		.strategy	= sysctl_ipc_data,
+		.proc_handler	= proc_ipc_callback_dointvec,
+		.strategy	= sysctl_ipc_registered_data,
 	},
 	{
 		.ctl_name	= KERN_SEM,
-- 
Solofo Ramangalahy
Bull SA.


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