From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B12CEB7088 for ; Sun, 11 Oct 2009 20:05:56 +1100 (EST) Subject: Re: [patch 22/28] macintosh: Remove BKL from ans-lcd From: Benjamin Herrenschmidt To: Thomas Gleixner In-Reply-To: <20091010153349.966159859@linutronix.de> References: <20091010153314.827301943@linutronix.de> <20091010153349.966159859@linutronix.de> Content-Type: text/plain; charset="UTF-8" Date: Sun, 11 Oct 2009 20:02:02 +1100 Message-Id: <1255251722.2192.33.camel@pasglop> Mime-Version: 1.0 Cc: Jonathan Corbet , Peter Zijlstra , Frederic Weisbecker , Vincent Sanders , LKML , Christoph Hellwig , linuxppc-dev@ozlabs.org, John Kacur , Andrew Morton , Ingo Molnar List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sat, 2009-10-10 at 15:37 +0000, Thomas Gleixner wrote: > plain text document attachment (drivers-mac-ans-lcd-remove-bkl.patch) > The ans-lcd driver got the cycle_kernel_lock() in anslcd_open() from > the BKL pushdown and it still uses the locked ioctl. > > The BKL serialization in this driver is more than obscure and > definitely does not cover all possible corner cases. Protect the > access to the hardware with a local mutex and get rid of BKL and > locked ioctl. > > Signed-off-by: Thomas Gleixner > Cc: Benjamin Herrenschmidt > Cc: linuxppc-dev@ozlabs.org > --- While I -do- have an ANS ... it's rusting in the back of my garage and I really don't have time nor space to set it up and get it back to booting shape :-) (It's a pretty huge thing) Patch looks good, so if it builds... Acked-by: Benjamin Herrenschmidt Cheers, Ben.