All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: Sage Weil <sage@newdream.net>
Cc: Tanya Brokhman <tlinder@codeaurora.org>,
	Huajun Li <huajun.li.lee@gmail.com>,
	linux-usb@vger.kernel.org, greg@kroah.com, ablay@codeaurora.org,
	Jassi Brar <jassisinghbrar@gmail.com>,
	Al Viro <viro@zeniv.linux.org.uk>,
	linux-fsdevel@vger.kernel.org
Subject: Re: [RFC] usb: don't dput() in usbfs_rmdir()
Date: Tue, 31 May 2011 11:53:26 +0200	[thread overview]
Message-ID: <4DE4BA96.1090905@linutronix.de> (raw)
In-Reply-To: <Pine.LNX.4.64.1105301320180.22620@cobra.newdream.net>

Sage Weil wrote:
>> Could one of VFS ppl look at this an NACK/ACK it?
> 
> I think it's the other dput that you want to remove.  64252c75 is a 
> misleading because the first hunk has to remove dput() from every exit 
> path for the function.  dentry_unhash is unconditionally doing dget, 
> though.  I think we want
> 
> diff --git a/drivers/usb/core/inode.c b/drivers/usb/core/inode.c
> index 1b125c2..2278dad 100644
> --- a/drivers/usb/core/inode.c
> +++ b/drivers/usb/core/inode.c
> @@ -389,7 +389,6 @@ static int usbfs_rmdir(struct inode *dir, struct dentry *dentry)
>         mutex_unlock(&inode->i_mutex);
>         if (!error)
>                 d_delete(dentry);
> -       dput(dentry);
>         return error;
>  }

Yep, this is the correct one. I added a file and removed it after the hcd
was gone and it only survived your way :)
Are you going to post a complete patch or do you want me to do it?

> Sorry I missed this one; I forgot there were filesystems outside of fs/.

Yes, they all over the place including arch/ :)

> 
> sage

Sebastian

  reply	other threads:[~2011-05-31  9:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <c53791ee86b26aac740ff8db61454972.squirrel@www.codeaurora.org>
     [not found] ` <BANLkTinspCvVeP7k5faYio4YPRqGbnzzTg@mail.gmail.com>
     [not found]   ` <000001cc1eb1$6aa8e500$3ffaaf00$@org>
     [not found]     ` <BANLkTimaMihxe75vTXDS1HivCbj8-v-pBg@mail.gmail.com>
     [not found]       ` <BANLkTimaMihxe75vTXDS1HivCbj8-v-pBg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-05-30 15:35         ` [RFC] usb: don't dput() in usbfs_rmdir() Sebastian Andrzej Siewior
     [not found]           ` <20110530153520.GA2386-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
2011-05-30 15:44             ` Jassi Brar
2011-05-30 20:27           ` Sage Weil
2011-05-31  9:53             ` Sebastian Andrzej Siewior [this message]
2011-05-31 16:11               ` Sage Weil
     [not found]                 ` <Pine.LNX.4.64.1105310909370.25709-vIokxiIdD2AQNTJnQDzGJqxOck334EZe@public.gmane.org>
2011-05-31 16:54                   ` Sergei Shtylyov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DE4BA96.1090905@linutronix.de \
    --to=bigeasy@linutronix.de \
    --cc=ablay@codeaurora.org \
    --cc=greg@kroah.com \
    --cc=huajun.li.lee@gmail.com \
    --cc=jassisinghbrar@gmail.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=sage@newdream.net \
    --cc=tlinder@codeaurora.org \
    --cc=viro@zeniv.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.