From: Alan Cox Subject: Re: [PATCH] add mutex to fbdev for fb_mmap locking Date: Tue, 2 Jun 2009 20:36:22 +0100 Message-ID: <20090602203622.244b1a74@lxorguk.ukuu.org.uk> References: <200905282134.n4SLYNwv027999@imap1.linux-foundation.org> <20090530121128.5f04179d.krzysztof.h1@poczta.fm> <20090531162453.dff458cb.krzysztof.h1@poczta.fm> <20090601222413.c2b57c9f.krzysztof.h1@poczta.fm> <20090602200626.1c3486e1.krzysztof.h1@poczta.fm> <20090602195240.0af2f21c@lxorguk.ukuu.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sfi-mx-1.v28.ch3.sourceforge.com ([172.29.28.121] helo=mx.sourceforge.net) by 235xhf1.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1MBZm9-0000AW-LM for linux-fbdev-devel@lists.sourceforge.net; Tue, 02 Jun 2009 19:35:57 +0000 Received: from earthlight.etchedpixels.co.uk ([81.2.110.250] helo=www.etchedpixels.co.uk) by 29vjzd1.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) id 1MBZm3-0006oh-2T for linux-fbdev-devel@lists.sourceforge.net; Tue, 02 Jun 2009 19:35:52 +0000 In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-fbdev-devel-bounces@lists.sourceforge.net To: Linus Torvalds Cc: krzysztof.h1@wp.pl, Linux-fbdev-devel , Peter Zijlstra , geert@linux-m68k.org, Andrew Morton , Ingo Molnar , righi.andrea@gmail.com > And then there is TIOCGSOFTCAR, which is just insane, and apparently gets > the lock in order to just test _one_ bit (C_CLOCAL). Never mind that if If you don't take it there are cases where it gets cleared by drivers momentarily and put back so you would give the wrong answer. > something is changing it, we really don't care _which_ case we return, so > the lock is likely pointless to begin with (can "termios" actually change > as a pointer?). But then does the user space access with the lock held. I'll fix those over the next few days to copy first, its pretty trivial stuff ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get