From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: What if a TLB flush needed to sleep? From: Peter Zijlstra In-Reply-To: References: <1FE6DD409037234FAB833C420AA843ECE9DF60@orsmsx424.amr.corp.intel.com> Content-Type: text/plain Date: Thu, 27 Mar 2008 14:20:52 +0100 Message-Id: <1206624052.8514.570.camel@twins> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Christoph Lameter Cc: Thomas Gleixner , "Luck, Tony" , linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org List-ID: On Wed, 2008-03-26 at 18:19 -0700, Christoph Lameter wrote: > On Wed, 26 Mar 2008, Thomas Gleixner wrote: > > > Please use a mutex, not a semaphore. semaphores should only be used > > when you need a counting sempahore. > > Seems that mutexes are mainly useful for 2 processor systems since they > do not allow concurrent read sections. We want multiple processors able > to reclaim pages within the same vma or file concurrently. This means > processors need to be able to concurrently walk potentially long lists of > vmas. confusion between semaphores and rwsems -- 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