Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262374AbUKRCzN (ORCPT ); Wed, 17 Nov 2004 21:55:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262376AbUKRCzN (ORCPT ); Wed, 17 Nov 2004 21:55:13 -0500 Received: from pool-151-203-245-3.bos.east.verizon.net ([151.203.245.3]:20996 "EHLO ccure.user-mode-linux.org") by vger.kernel.org with ESMTP id S262374AbUKRCzJ (ORCPT ); Wed, 17 Nov 2004 21:55:09 -0500 Message-Id: <200411180508.iAI58iQ3007886@ccure.user-mode-linux.org> X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.1-RC1 To: Ian Pratt cc: Dave Hansen , Linux Kernel Mailing List , Andrew Morton , Keir.Fraser@cl.cam.ac.uk, Christian.Limpach@cl.cam.ac.uk Subject: Re: [patch 2] Xen core patch : arch_free_page return value In-Reply-To: Your message of "Thu, 18 Nov 2004 01:19:15 GMT." References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 18 Nov 2004 00:08:44 -0500 From: Jeff Dike Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1134 Lines: 25 Ian.Pratt@cl.cam.ac.uk said: > Pages that have been allocated by our custom allocators get passed > into standard linux subsystems where we get no control over how > they're freed. We want the normal page ref counting etc to happen as > per normal, we just want to intercept the final free so that we can > return it to our allocator rather than the standard one. I have to agree with Dave - this is just a wierd solution. I added arch_free_page to do arch-specific, invisible-to-the-generic-kernel things. My intent may not be the be-all and end-all for this, but I think the semantics you want to add to it are not that reasonable. My gut reaction (without knowing your problem in any detail) would be that you need too add some more structure to whatever mechanism you have so that the pages land in your allocator automatically, like a slab or a new zone or something. Jeff - 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/