Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756461AbYAVWN1 (ORCPT ); Tue, 22 Jan 2008 17:13:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751407AbYAVWNQ (ORCPT ); Tue, 22 Jan 2008 17:13:16 -0500 Received: from extu-mxob-1.symantec.com ([216.10.194.28]:47473 "EHLO extu-mxob-1.symantec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751785AbYAVWNP (ORCPT ); Tue, 22 Jan 2008 17:13:15 -0500 Date: Tue, 22 Jan 2008 22:10:47 +0000 (GMT) From: Hugh Dickins X-X-Sender: hugh@blonde.site To: Andrea Arcangeli cc: Peter Zijlstra , Izik Eidus , Rik van Riel , linux-kernel@vger.kernel.org, linux-mm@kvack.org, kvm-devel@lists.sourceforge.net, Avi Kivity , clameter@sgi.com, daniel.blueman@quadrics.com, holt@sgi.com, steiner@sgi.com, Andrew Morton , Nick Piggin , Benjamin Herrenschmidt Subject: Re: [PATCH] mmu notifiers #v3 In-Reply-To: <20080122203125.GC15848@v2.random> Message-ID: References: <20080113162418.GE8736@v2.random> <20080116124256.44033d48@bree.surriel.com> <478E4356.7030303@qumranet.com> <20080117162302.GI7170@v2.random> <478F9C9C.7070500@qumranet.com> <20080117193252.GC24131@v2.random> <20080121125204.GJ6970@v2.random> <1201030127.6341.39.camel@lappy> <20080122203125.GC15848@v2.random> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 638 Lines: 15 On Tue, 22 Jan 2008, Andrea Arcangeli wrote: > > Then I will have to update KVM so that it will free the kvm structure > after waiting a quiescent point to avoid kernel crashing memory > corruption after applying your changes to the mmu notifier. It may not be suitable (I've not looked into your needs), but consider SLAB_DESTROY_BY_RCU: it might give you the easiest way to do that. Hugh -- 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/