Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754546AbXK0GrU (ORCPT ); Tue, 27 Nov 2007 01:47:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751217AbXK0GrM (ORCPT ); Tue, 27 Nov 2007 01:47:12 -0500 Received: from smtp2.linux-foundation.org ([207.189.120.14]:40027 "EHLO smtp2.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751125AbXK0GrL (ORCPT ); Tue, 27 Nov 2007 01:47:11 -0500 Date: Mon, 26 Nov 2007 22:46:36 -0800 From: Andrew Morton To: Pierre Peiffer , linux-kernel@vger.kernel.org, containers@lists.osdl.org Subject: Re: [PATCH 2.6.24-rc3-mm1] IPC: consolidate sem_exit_ns(), msg_exit_ns and shm_exit_ns() Message-Id: <20071126224636.ca1ef92e.akpm@linux-foundation.org> In-Reply-To: <20071126224438.df547263.akpm@linux-foundation.org> References: <20071123175250.0f584913.pierre.peiffer@bull.net> <20071126224438.df547263.akpm@linux-foundation.org> X-Mailer: Sylpheed 2.4.1 (GTK+ 2.8.17; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1346 Lines: 31 On Mon, 26 Nov 2007 22:44:38 -0800 Andrew Morton wrote: > On Fri, 23 Nov 2007 17:52:50 +0100 Pierre Peiffer wrote: > > > sem_exit_ns(), msg_exit_ns() and shm_exit_ns() are all called when an ipc_namespace is > > released to free all ipcs of each type. > > But in fact, they do the same thing: they loop around all ipcs to free them > > individually by calling a specific routine. > > > > This patch proposes to consolidate this by introducing a common function, free_ipcs(), > > that do the job. The specific routine to call on each individual ipcs is passed as > > parameter. For this, these ipc-specific 'free' routines are reworked to take a > > generic 'struct ipc_perm' as parameter. > > This conflicts in more-than-trivial ways with Pavel's > move-the-ipc-namespace-under-ipc_ns-option.patch, which was in > 2.6.24-rc3-mm1. > err, no, it wasn't that patch. For some reason your change assumes that msg_exit_ns() (for example) doesn't have these lines: kfree(ns->ids[IPC_MSG_IDS]); ns->ids[IPC_MSG_IDS] = NULL; in it. - 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/