From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Subject: Re: [PATCH 08/20] mm: Optimize fullmm TLB flushing Date: Fri, 29 Jun 2012 07:57:21 +1000 Message-ID: <1340920641.20977.103.camel@pasglop> References: <20120627211540.459910855@chello.nl> <20120627212831.137126018@chello.nl> <1340838154.10063.86.camel@twins> <1340838807.10063.90.camel@twins> <20120628091627.GB8573@arm.com> <1340879984.20977.80.camel@pasglop> <1340881196.28750.16.camel@twins> <20120628145327.GA17242@arm.com> <1340900425.28750.73.camel@twins> <1340902329.28750.83.camel@twins> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1340902329.28750.83.camel@twins> Sender: owner-linux-mm@kvack.org To: Peter Zijlstra Cc: Linus Torvalds , Catalin Marinas , "linux-kernel@vger.kernel.org" , "linux-arch@vger.kernel.org" , "linux-mm@kvack.org" , Thomas Gleixner , Ingo Molnar , "akpm@linux-foundation.org" , Rik van Riel , Hugh Dickins , Mel Gorman , Nick Piggin , Alex Shi , "Nikunj A. Dadhania" , Konrad Rzeszutek Wilk , David Miller , Russell King , Chris Metcalf , Martin List-Id: linux-arch.vger.kernel.org On Thu, 2012-06-28 at 18:52 +0200, Peter Zijlstra wrote: > No I think you're right (as always).. also an IPI will not force > schedule the thread that might be running on the receiving cpu, also > we'd have to wait for any such schedule to complete in order to > guarantee the mm isn't lazily used anymore. > > Bugger.. You can still do it if the mm count is 1 no ? Ie, current is the last holder of a reference to the mm struct... which will probably be the common case for short lived programs. Cheers, Ben. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org