Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751302AbVKWXb3 (ORCPT ); Wed, 23 Nov 2005 18:31:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751317AbVKWXb3 (ORCPT ); Wed, 23 Nov 2005 18:31:29 -0500 Received: from ebiederm.dsl.xmission.com ([166.70.28.69]:59356 "EHLO ebiederm.dsl.xmission.com") by vger.kernel.org with ESMTP id S1751302AbVKWXb2 (ORCPT ); Wed, 23 Nov 2005 18:31:28 -0500 To: Linus Torvalds Cc: "H. Peter Anvin" , Daniel Jacobowitz , Alan Cox , Andi Kleen , Gerd Knorr , Dave Jones , Zachary Amsden , Pavel Machek , Andrew Morton , Linux Kernel Mailing List , Zwane Mwaikambo , Pratap Subrahmanyam , Christopher Li , Ingo Molnar Subject: Re: [patch] SMP alternatives References: <1132764133.7268.51.camel@localhost.localdomain> <20051123163906.GF20775@brahms.suse.de> <1132766489.7268.71.camel@localhost.localdomain> <4384AECC.1030403@zytor.com> <1132782245.13095.4.camel@localhost.localdomain> <20051123214835.GA24044@nevyn.them.org> <4384E4F7.9060806@zytor.com> <20051123220324.GA24517@nevyn.them.org> <4384E880.4060305@zytor.com> From: ebiederm@xmission.com (Eric W. Biederman) Date: Wed, 23 Nov 2005 16:29:02 -0700 In-Reply-To: (Linus Torvalds's message of "Wed, 23 Nov 2005 14:21:53 -0800 (PST)") Message-ID: User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1063 Lines: 25 Linus Torvalds writes: > On Wed, 23 Nov 2005, H. Peter Anvin wrote: >> >> Yes. Any shared mmaps may require working lock. > > Not "any". Only writable shared mmap. Which is actually the rare case. > > Even then, we might want to have such processes have a way to say "I don't > do futexes in this mmap" or similar. Quite often, writable shared mmaps > aren't interested in locked cycles - they are there to just write things > to disk, and all the serialization is done in the kernel when the user > does a "munmap()" or a "msync()". In fact for being explict we already have PROT_SEM on some architectures to report if we are going to use atomic operations, in the mmap. For x86 we would probably need to introduce a PROT_NOSEM but it is sounds fairly straight forward to implement. Eric - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/