Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764536AbYFFGSh (ORCPT ); Fri, 6 Jun 2008 02:18:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1764490AbYFFGRn (ORCPT ); Fri, 6 Jun 2008 02:17:43 -0400 Received: from ecfrec.frec.bull.fr ([129.183.4.8]:59274 "EHLO ecfrec.frec.bull.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1764473AbYFFGRl (ORCPT ); Fri, 6 Jun 2008 02:17:41 -0400 Message-Id: <20080606060958.386058480@bull.net> References: <20080606060955.317871352@bull.net> User-Agent: quilt/0.46-1 Date: Fri, 06 Jun 2008 08:09:58 +0200 From: To: Cc: Solofo Ramangalahy Subject: [RFC -mm 3/6] sysv ipc: do not recompute msgmni anymore if explicitely set by user Content-Disposition: inline; filename=ipc-do-not-recompute-msgmnb-anymore-if-explicitely-set-by-user.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1240 Lines: 39 From: Solofo Ramangalahy 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 --- 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/