From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 26 Mar 2008 18:19:26 -0700 (PDT) From: Christoph Lameter Subject: Re: What if a TLB flush needed to sleep? In-Reply-To: Message-ID: References: <1FE6DD409037234FAB833C420AA843ECE9DF60@orsmsx424.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Thomas Gleixner Cc: "Luck, Tony" , linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org List-ID: 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. -- 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