Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764762AbYFFGSy (ORCPT ); Fri, 6 Jun 2008 02:18:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1764503AbYFFGRo (ORCPT ); Fri, 6 Jun 2008 02:17:44 -0400 Received: from ecfrec.frec.bull.fr ([129.183.4.8]:59287 "EHLO ecfrec.frec.bull.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1764491AbYFFGRm (ORCPT ); Fri, 6 Jun 2008 02:17:42 -0400 Message-Id: <20080606060958.547519391@bull.net> References: <20080606060955.317871352@bull.net> User-Agent: quilt/0.46-1 Date: Fri, 06 Jun 2008 08:09:59 +0200 From: To: Cc: Solofo Ramangalahy Subject: [RFC -mm 4/6] sysv ipc: re-enable msgmnb automatic recomputing if set to negative Content-Disposition: inline; filename=ipc-re-enable-msgmnb-automatic-recomputing-msgmnb-if-set-to-negative.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 994 Lines: 32 From: Solofo Ramangalahy When a negative value is put in /proc/sys/kernel/msgmnb automatic recomputing is re-enabled. Signed-off-by: Solofo Ramangalahy --- 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. -- 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/