From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752322Ab0ESSIb (ORCPT ); Wed, 19 May 2010 14:08:31 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:54741 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751131Ab0ESSI3 (ORCPT ); Wed, 19 May 2010 14:08:29 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=meIUjE+NWK+1rAlncpuoXKHeg6c7ahNcx4wRWLtVwsclx029Y6VQZxrsExIbt8xXEy QrwoAGOOoQTR4VDvugW48q8sD3xaDxciICiFiG/EHK4ZlNYU1Hq/nubY2ILAg/OrVLQf i6SpL3R9njJpuTpBGdkM2sCxsOD8cGdOf3dQo= Date: Wed, 19 May 2010 20:08:35 +0200 From: Frederic Weisbecker To: "H. Peter Anvin" Cc: Ingo Molnar , LKML , Autofs , Thomas Gleixner , John Kacur , Arnd Bergmann Subject: Re: [PATCH 2/8] autofs: Pushdown the bkl from ioctl Message-ID: <20100519180832.GA9752@nowhere> References: <1274289855-10001-1-git-send-regression-fweisbec@gmail.com> <1274289855-10001-3-git-send-regression-fweisbec@gmail.com> <4BF4279C.2000805@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BF4279C.2000805@zytor.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 19, 2010 at 11:02:04AM -0700, H. Peter Anvin wrote: > On 05/19/2010 10:24 AM, Frederic Weisbecker wrote: > > * generate kernel reactions > > */ > > -static int autofs_root_ioctl(struct inode *inode, struct file *filp, > > +static int autofs_root_ioctl_unlocked(struct inode *inode, struct file *filp, > > unsigned int cmd, unsigned long arg) > > { > > struct autofs_sb_info *sbi = autofs_sbi(inode->i_sb); > > @@ -579,3 +579,16 @@ static int autofs_root_ioctl(struct inode *inode, struct file *filp, > > return -ENOSYS; > > } > > } > > + > > +static long autofs_root_ioctl(struct file *filp, > > + unsigned int cmd, unsigned long arg) > > +{ > > The choice of naming here seems reverse in my opinion. Oh, why? The function that holds the bkl calls its unlocked version.