From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1J0NCd-0001eT-UA for user-mode-linux-devel@lists.sourceforge.net; Thu, 06 Dec 2007 12:20:13 -0800 Received: from saraswathi.solana.com ([198.99.130.12]) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1J0NCb-0000i6-7S for user-mode-linux-devel@lists.sourceforge.net; Thu, 06 Dec 2007 12:20:11 -0800 Date: Thu, 6 Dec 2007 15:19:29 -0500 From: Jeff Dike Message-ID: <20071206201929.GA9366@c2.user-mode-linux.org> References: <20071206170640.GA7420@c2.user-mode-linux.org> <20071206114642.555a0749.akpm@linux-foundation.org> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <20071206114642.555a0749.akpm@linux-foundation.org> Subject: Re: [uml-devel] [PATCH 1/6] UML - Customize tlb.h List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: user-mode-linux-devel-bounces@lists.sourceforge.net Errors-To: user-mode-linux-devel-bounces@lists.sourceforge.net To: Andrew Morton Cc: linux-kernel@vger.kernel.org, user-mode-linux-devel@lists.sourceforge.net On Thu, Dec 06, 2007 at 11:46:42AM -0800, Andrew Morton wrote: > > +void flush_tlb_mm(struct mm_struct *mm) > > +{ > > + struct vm_area_struct *vma = mm->mmap; > > + > > + if (atomic_read(&mm->mm_users) == 0) > > + return; > > Under which circumstances does this test succeed? Sigh, none. The other copy obviously succeeds during exit - this one isn't needed. > This file rather needs an inclusion of percpu.h. I guess you got > lucky. Yup, drop this, and I'll send a fixed version. Jeff -- Work email - jdike at linux dot intel dot com ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753466AbXLFUU1 (ORCPT ); Thu, 6 Dec 2007 15:20:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752106AbXLFUUO (ORCPT ); Thu, 6 Dec 2007 15:20:14 -0500 Received: from saraswathi.solana.com ([198.99.130.12]:34014 "EHLO saraswathi.solana.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752088AbXLFUUN (ORCPT ); Thu, 6 Dec 2007 15:20:13 -0500 Date: Thu, 6 Dec 2007 15:19:29 -0500 From: Jeff Dike To: Andrew Morton Cc: linux-kernel@vger.kernel.org, user-mode-linux-devel@lists.sourceforge.net Subject: Re: [PATCH 1/6] UML - Customize tlb.h Message-ID: <20071206201929.GA9366@c2.user-mode-linux.org> References: <20071206170640.GA7420@c2.user-mode-linux.org> <20071206114642.555a0749.akpm@linux-foundation.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071206114642.555a0749.akpm@linux-foundation.org> User-Agent: Mutt/1.4.2.3i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 06, 2007 at 11:46:42AM -0800, Andrew Morton wrote: > > +void flush_tlb_mm(struct mm_struct *mm) > > +{ > > + struct vm_area_struct *vma = mm->mmap; > > + > > + if (atomic_read(&mm->mm_users) == 0) > > + return; > > Under which circumstances does this test succeed? Sigh, none. The other copy obviously succeeds during exit - this one isn't needed. > This file rather needs an inclusion of percpu.h. I guess you got > lucky. Yup, drop this, and I'll send a fixed version. Jeff -- Work email - jdike at linux dot intel dot com