From owner-freebsd-current@FreeBSD.ORG Mon Dec 23 19:43:56 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 51CA560B; Mon, 23 Dec 2013 19:43:56 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2783A1911; Mon, 23 Dec 2013 19:43:56 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 3D958B964; Mon, 23 Dec 2013 14:43:55 -0500 (EST) From: John Baldwin To: freebsd-current@freebsd.org Subject: Re: new Xorg (KMS, etc.) for Radeon 9600 Date: Mon, 23 Dec 2013 11:50:31 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20130906; KDE/4.5.5; amd64; ; ) References: <527F95BE.7080908@gmx.com> <52B17777.6060703@FreeBSD.org> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201312231150.31936.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 23 Dec 2013 14:43:55 -0500 (EST) Cc: dt71@gmx.com, Adrian Chadd , Robert Noland , =?iso-8859-1?q?Jean-S=E9bastien?= =?iso-8859-1?q?_P=E9dron?= X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Dec 2013 19:43:56 -0000 On Wednesday, December 18, 2013 2:43:28 pm Adrian Chadd wrote: > [snip] > > So the standard trop of UNLOCK/WORK/RELOCK is pretty dangerous. > There's no state re-validation going on when you re-acquire that lock. > So, although it meets the lock requirements, it may not be 'correct'. > > It's scattered throughout the code base (wifi drivers aren't an > exception here either, sigh.) > > Just something to keep in mind when you validate the 'correctness' of > this kind of lock hack. Agreed. It needs fixing, but the fix needs to be correct. -- John Baldwin