linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nick Piggin <npiggin@suse.de>
To: Ian Kent <raven@themaw.net>
Cc: linux-fsdevel@vger.kernel.org, autofs@linux.kernel.org
Subject: Re: [rfc][patch] fs: dcache remove d_mounted
Date: Fri, 9 Oct 2009 10:33:35 +0200	[thread overview]
Message-ID: <20091009083335.GB17818@wotan.suse.de> (raw)
In-Reply-To: <4ACEF0FA.1060605@themaw.net>

On Fri, Oct 09, 2009 at 04:14:50PM +0800, Ian Kent wrote:
> Nick Piggin wrote:
> > Yeah I will redo it against mainline and send it out again. I will
> > get around to doing a git tree of the vfs scalability stuff after
> > I get the series in a bit more reasonable shape... I'll need you to
> > look at that too because autofs4 does a lot of meddling with
> > dcache_lock ;)
> 
> Hehe, sorry.
> 
> np, just point me at it and I'll do what I can.

I will do so, I just want to get a chance to clean it up and
document it all a bit better before I ask filesystem maintainres
to take a really good look.


> I'm open to advice on where and why I don't need to use the dcache_lock.
> I think there are case where I unnecessarily take it, especially in the
> changes that I have just posted to support the Sage Weil change to the
> taking of the directory i_mutex over revalidate in real_lookup(). Which
> are present in the mm kernel atm, if the latest one has been posted yet
> that is.

Well, after my patches there is no dcache_lock, so we need to
be sure that we _don't_ need dcache_lock :)

Basically what I have done for autofs4 is that I've tried to
preserve the same guarantees (from the dcache) that it looks
like you need, when replacing each instance of dcache_lock.

I have then replaced each dcache_lock with a new global
autofs4_lock, because there is so much state in there and
so many places where you take dcache_lock that I can't tell
what autofs internals are being protected with it.

I.... have it "working", but the reality is that there will be
bugs especially in my initial conversions of something hard like
autofs4. So just informed reviewing and questions/comments are
going to be important.

Thanks,
Nick

  reply	other threads:[~2009-10-09  8:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-09  2:56 [rfc][patch] fs: dcache remove d_mounted Nick Piggin
2009-10-09  5:47 ` Ian Kent
2009-10-09  7:42   ` Nick Piggin
2009-10-09  8:00     ` Ian Kent
2009-10-09  8:07       ` Nick Piggin
2009-10-09  8:14         ` Ian Kent
2009-10-09  8:33           ` Nick Piggin [this message]
2009-10-09  8:56             ` Ian Kent
2009-10-09  9:59               ` Nick Piggin
2009-10-09 11:53                 ` Ian Kent
2009-10-09  8:07     ` Ian Kent

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=20091009083335.GB17818@wotan.suse.de \
    --to=npiggin@suse.de \
    --cc=autofs@linux.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=raven@themaw.net \
    /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;
as well as URLs for NNTP newsgroup(s).