Messages in this thread Patch in this message | | | Date | Fri, 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.
| |