From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763048AbYETIdV (ORCPT ); Tue, 20 May 2008 04:33:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1762508AbYETIcs (ORCPT ); Tue, 20 May 2008 04:32:48 -0400 Received: from moutng.kundenserver.de ([212.227.126.179]:59628 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762128AbYETIcp convert rfc822-to-8bit (ORCPT ); Tue, 20 May 2008 04:32:45 -0400 From: Arnd Bergmann To: Christoph Hellwig Subject: Re: [PATCH 2/3, RFC] watchdog dev BKL pushdown Date: Tue, 20 May 2008 10:30:11 +0200 User-Agent: KMail/1.9.9 Cc: Jonathan Corbet , Linus Torvalds , Ingo Molnar , Andrew Morton , Peter Zijlstra , Thomas Gleixner , Alan Cox , Alexander Viro , linux-kernel@vger.kernel.org, Wim Van Sebroeck References: <13762.1211142411@vena.lwn.net> <200805200114.24819.arnd@arndb.de> <20080520062056.GA5292@infradead.org> In-Reply-To: <20080520062056.GA5292@infradead.org> X-Face: I@=L^?./?$U,EK.)V[4*>`zSqm0>65YtkOe>TFD'!aw?7OVv#~5xd\s,[~w]-J!)|%=]>=?utf-8?q?+=0A=09=7EohchhkRGW=3F=7C6=5FqTmkd=5Ft=3FLZC=23Q-=60=2E=60Y=2Ea=5E?= =?utf-8?q?3zb?=) =?utf-8?q?+U-JVN=5DWT=25cw=23=5BYo0=267C=26bL12wWGlZi=0A=09=7EJ=3B=5Cwg?= =?utf-8?q?=3B3zRnz?=,J"CT_)=\H'1/{?SR7GDu?WIopm.HaBG=QYj"NZD_[zrM\Gip^U MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT Content-Disposition: inline Message-Id: <200805201030.14092.arnd@arndb.de> X-Provags-ID: V01U2FsdGVkX1/wnQeXvIIp+Jj3ugC+9KoU1KbdQ4TiW5ApijJ L6sR9vLa5oborAZNiyd95eGX8vrdc9Wgfnkot+D5GJQC8cd4Xc yQIPEfebEempaNAh8mb6Q== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 20 May 2008, Christoph Hellwig wrote: > On Tue, May 20, 2008 at 01:14:23AM +0200, Arnd Bergmann wrote: > > The Big Kernel Lock has been pushed down from chardev_open > > to misc_open, this change moves it to the individual watchdog > > driver open functions. > > > > As before, the change was purely mechanical, most drivers > > should actually not need the BKL. > > Actually I'd prefer to fix this for real.  This single open stuff aswell > as same set of ioctls are duplicated all over the watchdog drivers.  We'd > be much better off introducing a simple watchdog layer that handles this > plus proper locking and convert drivers over to it gradually. I fully agree, I thought the same thing when I did the patches. I remember that Wim had a git tree doing this, which is still active at http://git.kernel.org/?p=linux/kernel/git/wim/linux-2.6-watchdog-experimental.git;a=commitdiff;h=732c54027e6c866f98857c4a6d1c6c466459dcd5 Unfortunately, it hasn't seen much activitity over the last two years, and the number of watchdog drivers seems to have exploded: I count 67 of them, including some outside of drivers/watchdog. Wim, was there anything preventing you from integrating the generic watchdog layer back then? Arnd <><