From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762780AbZBETrQ (ORCPT ); Thu, 5 Feb 2009 14:47:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761453AbZBETgF (ORCPT ); Thu, 5 Feb 2009 14:36:05 -0500 Received: from smtp3.ultrahosting.com ([74.213.175.254]:34810 "EHLO smtp.ultrahosting.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1760333AbZBETgE (ORCPT ); Thu, 5 Feb 2009 14:36:04 -0500 Date: Thu, 5 Feb 2009 14:30:29 -0500 (EST) From: Christoph Lameter X-X-Sender: cl@qirst.com To: Robin Holt cc: linux-mm@kvack.org, Andrea Arcangeli , Nick Piggin , Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [Patch] mmu_notifiers destroyed by __mmu_notifier_release() retain extra mm_count. In-Reply-To: <20090205172303.GB8559@sgi.com> Message-ID: References: <20090205172303.GB8559@sgi.com> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) 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 The drop of the refcount needs to occur after the last use of data in the mmstruct because mmdrop() may free the mmstruct. Place it after the synchronize_rcu?