From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757126Ab0FAViq (ORCPT ); Tue, 1 Jun 2010 17:38:46 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:48144 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753089Ab0FAVio (ORCPT ); Tue, 1 Jun 2010 17:38:44 -0400 Date: Tue, 1 Jun 2010 17:37:55 -0400 From: Christoph Hellwig To: Arnd Bergmann Cc: Jens Axboe , Vivek Goyal , Tejun Heo , Frederic Weisbecker , FUJITA Tomonori , "Martin K. Petersen" , Steven Rostedt , Douglas Gilbert , Ingo Molnar , John Kacur , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] block: replace BKL with global mutex Message-ID: <20100601213755.GA1004@infradead.org> References: <1275428028-10901-1-git-send-email-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1275428028-10901-1-git-send-email-arnd@arndb.de> User-Agent: Mutt/1.5.19 (2009-01-05) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org NAK. You're really only creation a mini-BKL here without sorting out the locking. Please go through the individual callers and sort them out. Start by pushing the remaining ioctls to the unlocked version and moving the BKL into the ->open and ->release methods.