From: "Vladimir V. Saveliev" <vs@namesys.com>
To: Jeff Mahoney <jeffm@suse.com>, a.righi@cineca.it
Cc: linux-kernel@vger.kernel.org, reiserfs-dev@namesys.com,
Edward Shishkin <edward@namesys.com>,
zam@clusterfs.com
Subject: Re: Fwd: Fw: [2.6.20.4] BUG: dentry xattrs still in use in shrink_dcache_for_umount() with reiserfs
Date: Wed, 18 Apr 2007 18:16:20 +0400 [thread overview]
Message-ID: <200704181816.21166.vs@namesys.com> (raw)
In-Reply-To: <c04ebacf0704180152qdc72fcdnd0755dbf070b40d2@mail.gmail.com>
Hello
On Wednesday 18 April 2007 12:52, ReiserFS Developers Mailing List wrote:
> *Forwarded Conversation*
> Subject: *[2.6.20.4] BUG: dentry xattrs still in use in
> shrink_dcache_for_umount() with reiserfs*
> ------------------------
>
> * From: Andrea Righi* <righiandr@users.sourceforge.net> Reply-To:
> righiandr@users.sourceforge.net
> To: reiserfs-dev@namesys.com
> Cc: LKML <linux-kernel@vger.kernel.org>, Andrew Morton <
> akpm@linux-foundation.org>
> Date: Fri, Apr 13, 2007 at 3:04 PM
> Attachments: config.gz
>
> I can reproduce the problem umounting my /var (reiserfs), but it doesn't
> occur with /usr or /opt, that are reiserfs too.
>
> It seems very similar to this issue:
> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.18-rc3/2.6.18-rc3-mm2/hot-fixes/reiserfs-make-sure-all-dentries-refs-are-released-before-calling-kill_block_super-try-2.patch
>
> How the xattrs->d_count can be 1 if the dentry is explicitly released
> in reiserfs_kill_sb(), before calling kill_super_block()?
>
Jeff, in 2.6.20/fs/reiserfs/xattr.c we have get_xa_root,
which may increment xattr_root reference count either by 1 or 2:
If REISERFS_SB()->xattr_root != NULL - dentry reference count is incremented by 1 with dget.
If REISERFS_SB()->xattr_root == NULL, __get_xa_root is called which may increase xattr_root dentry reference count by 2:
once in lookup_one_len->__lookup_hash->cached_lookup->__d_lookup and once explicitly with dget in __get_xa_root.
Do you think that could be a reason of the extra reference count on xattr_root dentry?
> (config attached)
>
> -Andrea
>
> BUG: Dentry dfcd2570{i=21bc,n=xattrs} still in use (1) [unmount of reiserfs
> dm-4]
next parent reply other threads:[~2007-04-18 14:17 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20070413095219.02075323.akpm@linux-foundation.org>
[not found] ` <462536B2.5060308@users.sourceforge.net>
[not found] ` <c04ebacf0704180152qdc72fcdnd0755dbf070b40d2@mail.gmail.com>
2007-04-18 14:16 ` Vladimir V. Saveliev [this message]
2007-04-18 15:00 ` Fwd: Fw: [2.6.20.4] BUG: dentry xattrs still in use in shrink_dcache_for_umount() with reiserfs Jeff Mahoney
2007-04-21 0:07 ` Andrew Morton
2007-04-21 1:45 ` Jeff Mahoney
2007-04-21 13:17 ` Andrea Righi
2007-04-21 14:31 ` Jeff Mahoney
2007-04-21 14:34 ` Jeff Mahoney
2007-04-21 15:26 ` [PATCH] reiserfs: fix xattr root locking/refcount bug Jeff Mahoney
2007-04-21 19:39 ` Andrew Morton
2007-04-22 10:28 ` Andrea Righi
2007-04-22 20:49 ` Jeff Mahoney
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=200704181816.21166.vs@namesys.com \
--to=vs@namesys.com \
--cc=a.righi@cineca.it \
--cc=edward@namesys.com \
--cc=jeffm@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=reiserfs-dev@namesys.com \
--cc=zam@clusterfs.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 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.