Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1765978AbYBADB4 (ORCPT ); Thu, 31 Jan 2008 22:01:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754640AbYBADBp (ORCPT ); Thu, 31 Jan 2008 22:01:45 -0500 Received: from relay1.sgi.com ([192.48.171.29]:50131 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753150AbYBADBo (ORCPT ); Thu, 31 Jan 2008 22:01:44 -0500 Date: Thu, 31 Jan 2008 19:01:44 -0800 (PST) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: Robin Holt cc: Andrea Arcangeli , Avi Kivity , Izik Eidus , kvm-devel@lists.sourceforge.net, Peter Zijlstra , steiner@sgi.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, daniel.blueman@quadrics.com Subject: Re: [patch 1/3] mmu_notifier: Core code In-Reply-To: <20080201024742.GD26420@sgi.com> Message-ID: References: <20080131045750.855008281@sgi.com> <20080131045812.553249048@sgi.com> <20080201023113.GB26420@sgi.com> <20080201024742.GD26420@sgi.com> 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: 939 Lines: 22 On Thu, 31 Jan 2008, Robin Holt wrote: > Both xpmem and GRU have means of removing their context seperate from > process termination. XPMEMs is by closing the fd, I believe GRU is > the same. In the case of XPMEM, we are able to acquire the mmap_sem. > For GRU, I don't think it is possible, but I do not remember the exact > reason. For any action initiated from user space you will not hold mmap sem. So you can call the unregister function. Then you need to do a synchronize_rcu before freeing the structures. It is also possible to shut this down outside via f.e. a control thread. The control thread can acquire mmap_sem and then unregister the notifier. Am I missing something? -- 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/