From: Peter Zijlstra <a.p.zijlstra@chello.nl>
To: akpm@linux-foundation.org
Cc: jeffm@suse.com, hch@lst.de, mason@suse.com, vs@namesys.com,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: + reiserfs-fix-up-lockdep-warnings.patch added to -mm tree
Date: Thu, 18 Oct 2007 09:10:25 +0200 [thread overview]
Message-ID: <1192691425.27435.159.camel@twins> (raw)
In-Reply-To: <200710172211.l9HMBnCr010855@imap1.linux-foundation.org>
[-- Attachment #1: Type: text/plain, Size: 1800 bytes --]
On Wed, 2007-10-17 at 15:11 -0700, akpm@linux-foundation.org wrote:
> Subject: reiserfs: fix up lockdep warnings
> From: Jeff Mahoney <jeffm@suse.com>
>
> Add I_MUTEX_XATTR annotations to the inode locking in the reiserfs xattr code.
>
> Signed-off-by: Jeff Mahoney <jeffm@suse.com>
> Cc: Christoph Hellwig <hch@lst.de>
> Cc: Chris Mason <mason@suse.com>
> Cc: "Vladimir V. Saveliev" <vs@namesys.com>
> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Yep looks good,
want me to push this through the lockdep tree, or will you forward it?
In which case:
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
>
> fs/reiserfs/xattr.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff -puN fs/reiserfs/xattr.c~reiserfs-fix-up-lockdep-warnings fs/reiserfs/xattr.c
> --- a/fs/reiserfs/xattr.c~reiserfs-fix-up-lockdep-warnings
> +++ a/fs/reiserfs/xattr.c
> @@ -484,7 +484,7 @@ reiserfs_xattr_set(struct inode *inode,
> /* Resize it so we're ok to write there */
> newattrs.ia_size = buffer_size;
> newattrs.ia_valid = ATTR_SIZE | ATTR_CTIME;
> - mutex_lock(&xinode->i_mutex);
> + mutex_lock_nested(&xinode->i_mutex, I_MUTEX_XATTR);
> err = notify_change(fp->f_path.dentry, &newattrs);
> if (err)
> goto out_filp;
> @@ -1223,7 +1223,8 @@ int reiserfs_xattr_init(struct super_blo
> if (!IS_ERR(dentry)) {
> if (!(mount_flags & MS_RDONLY) && !dentry->d_inode) {
> struct inode *inode = dentry->d_parent->d_inode;
> - mutex_lock(&inode->i_mutex);
> + mutex_lock_nested(&inode->i_mutex,
> + I_MUTEX_XATTR);
> err = inode->i_op->mkdir(inode, dentry, 0700);
> mutex_unlock(&inode->i_mutex);
> if (err) {
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next parent reply other threads:[~2007-10-18 7:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200710172211.l9HMBnCr010855@imap1.linux-foundation.org>
2007-10-18 7:10 ` Peter Zijlstra [this message]
2007-10-18 7:48 ` + reiserfs-fix-up-lockdep-warnings.patch added to -mm tree Andrew Morton
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=1192691425.27435.159.camel@twins \
--to=a.p.zijlstra@chello.nl \
--cc=akpm@linux-foundation.org \
--cc=hch@lst.de \
--cc=jeffm@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mason@suse.com \
--cc=vs@namesys.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox