From: Al Viro <viro@ZenIV.linux.org.uk>
To: Ted Ts'o <tytso@mit.edu>
Cc: Ext4 Developers List <linux-ext4@vger.kernel.org>
Subject: Re: [PATCH] ext4: fix races in ext4_sync_parent()
Date: Sat, 30 Jul 2011 17:42:42 +0100 [thread overview]
Message-ID: <20110730164242.GB2203@ZenIV.linux.org.uk> (raw)
In-Reply-To: <20110730163204.GH7361@thunk.org>
On Sat, Jul 30, 2011 at 12:32:04PM -0400, Ted Ts'o wrote:
> spin_lock(&inode->i_lock);
> if (!list_empty(&inode->i_dentry)) {
> dentry = list_first_entry(&inode->i_dentry,
> struct dentry, d_alias);
> dget(dentry);
> }
> spin_unlock(&inode->i_lock);
dentry = d_find_alias(inode);
actually...
> if (!dentry)
> break;
> next = igrab(dentry->d_parent->d_inode);
and that one needs dentry->d_lock around it, to stabilize ->d_parent.
prev parent reply other threads:[~2011-07-30 16:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-27 1:13 [PATCH] ext4: fix races in ext4_sync_parent() Theodore Ts'o
2011-07-27 1:15 ` Al Viro
2011-07-28 0:34 ` Ted Ts'o
2011-07-28 1:11 ` Al Viro
2011-07-30 16:32 ` Ted Ts'o
2011-07-30 16:42 ` Al Viro [this message]
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=20110730164242.GB2203@ZenIV.linux.org.uk \
--to=viro@zeniv.linux.org.uk \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@mit.edu \
/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.