From: Josef Bacik <jbacik@redhat.com>
To: Alex Lyashkov <Alexey.Lyashkov@Sun.COM>
Cc: Miklos Szeredi <miklos@szeredi.hu>,
linux-fsdevel@vger.kernel.org, Andrew.Perepechko@Sun.COM,
dhowells@redhat.com
Subject: Re: [RFC] possible badness in prune_dcache()
Date: Fri, 4 Apr 2008 11:29:28 -0400 [thread overview]
Message-ID: <20080404152928.GD22429@unused.rdu.redhat.com> (raw)
In-Reply-To: <1207322926.12346.30.camel@bear.shadowland>
On Fri, Apr 04, 2008 at 06:28:46PM +0300, Alex Lyashkov wrote:
> Thanks for answer,
>
> Yes this commit - fix issue with umount, but not resolve main question:
> why prune_dcache kill dentry with diffrent super block? this produce
> long loop with skip loop instead of early exit and move dentry from
> select_parent again to end of list.
>
probably worth looking at doing something different in the case of shrinking the
dcache on the parent, and leaving prune_dcache to only be called in the case of
trying to free up dcache under memory pressure, where the superblock doesn't
actually matter. For the RHEL3 issue you are reffering to I fixed it by
creating a private list when we shrunk the parent, and submitting that list to
prune_dcache that way we didn't spend all this time looping. I will see what
can be done for upstream.
Josef
>
> On Fri, 2008-04-04 at 14:42 +0200, Miklos Szeredi wrote:
> > > When investigation livelock in RHEL3, i found possible badness in
> > > prune_dcache, which exist in 2.6.24 also.
> >
> > Have you actually tested with 2.6.24? shrink_dcache_parent() isn't
> > called from umount anymore. I think this is the commit responsible
> > for fixing the issue:
> >
> > commit c636ebdb186bf37f98d3839f69293597723edb36
> > Author: David Howells <dhowells@redhat.com>
> > Date: Wed Oct 11 01:22:19 2006 -0700
> >
> > [PATCH] VFS: Destroy the dentries contributed by a superblock on unmounting
> >
> > Miklos
> >
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2008-04-04 15:35 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-04 11:40 [RFC] possible badness in prune_dcache() Alex Lyashkov
2008-04-04 12:42 ` Miklos Szeredi
2008-04-04 15:28 ` Alex Lyashkov
2008-04-04 15:29 ` Josef Bacik [this message]
2008-04-04 15:57 ` Josef Bacik
2008-04-04 18:38 ` Miklos Szeredi
2008-04-04 18:44 ` Josef Bacik
2008-04-04 18:49 ` Josef Bacik
2008-04-04 19:01 ` Miklos Szeredi
2008-04-04 19:13 ` Josef Bacik
2008-04-04 19:32 ` Miklos Szeredi
2008-04-07 6:40 ` Takashi Nishiie
2008-04-07 10:49 ` David Howells
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=20080404152928.GD22429@unused.rdu.redhat.com \
--to=jbacik@redhat.com \
--cc=Alexey.Lyashkov@Sun.COM \
--cc=Andrew.Perepechko@Sun.COM \
--cc=dhowells@redhat.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=miklos@szeredi.hu \
/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.