2008-06-06 06:18:37

by Solofo.Ramangalahy

[permalink] [raw]
Subject: [RFC -mm 3/6] sysv ipc: do not recompute msgmni anymore if explicitely set by user

From: Solofo Ramangalahy <[email protected]>

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 <[email protected]>

---
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.