From: "J. Bruce Fields" <bfields-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org>
To: Linus Torvalds
<torvalds-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
Cc: linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Al Viro <viro-RmSDqhL/yNMiFSDQTTA3OLVCufUGDwFn@public.gmane.org>
Subject: Re: nfsd changes for 3.5
Date: Thu, 31 May 2012 16:01:38 -0400 [thread overview]
Message-ID: <20120531200138.GD25955@fieldses.org> (raw)
In-Reply-To: <CA+55aFwGpVM2Dbe02gL5=cGJZ_t3b4PTAhqwrs5MHjsb5R6BaA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Thu, May 31, 2012 at 11:58:34AM -0700, Linus Torvalds wrote:
> On Thu, May 31, 2012 at 11:24 AM, J. Bruce Fields <bfields@fieldses.org> wrote:
> >
> > Sorry this is a bit late. In fact I still have a review backlog (at a
> > minimum some bugfixes), so will send a second pull later.
>
> Quite frankly, I'm not going to pull this without lots of explanations.
>
> The VFS-level changes have no acks or sign-offs from anybody else,
Sorry, yes, at best I had a verbal OK from Al (and maybe I'm wrong about
that). I got impatient.
> and quite frankly, if I understand them correctly they look f*cking
> disgusting. If I read them right, they break delegations of a file
> (which can involve long waits for clients - no?)
Right. By default it's 90 seconds before we'll give up on the client.
> while holding on to
> the directory inode lock (both directories for cross-inode renames).
> Which seems to be a singularly idiotic thing to do and sounds to me
> like a fundamental design mistake.
I hate that too, and originally tried to avoid it with something like:
retry:
acquire locks
lookup inode
ret = try_to_break_deleg(inode);
if (ret)
drop locks
really_break_deleg(inode);
goto retry;
... do the real work ...
drop locks
I felt like I was making already complicated code logic like rename's
even harder to follow.
And those operations don't really know the inode till they acquire the
locks, so in pathological cases that could continue forever.
...
> So quite frankly, this *all* looks like 3.6 material to me, and that's
> assuming you can convince people that file-delegation breaking really
> should happen with all lookups on the directory the file is in blocked
> by the directory inode mutex in the first place. Or tell me I'm a
> moron and I misread the patches and don't know what I'm talking about.
No, I think you understand correctly.
The presence of a delegation requires blocking certain operations until
a client somewhere responds (or we time out).
So the question as I understand it is whether there's a way to lessen
the impact by blocking only what we really need to.
I don't know if there's a way to do that without reworking the vfs
directory locking to be much more fine-grained.
--b.
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2012-05-31 20:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-31 18:24 nfsd changes for 3.5 J. Bruce Fields
[not found] ` <20120531182457.GB25955-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org>
2012-05-31 18:58 ` Linus Torvalds
[not found] ` <CA+55aFwGpVM2Dbe02gL5=cGJZ_t3b4PTAhqwrs5MHjsb5R6BaA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-05-31 20:01 ` J. Bruce Fields [this message]
[not found] ` <20120531200138.GD25955-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org>
2012-05-31 20:17 ` Linus Torvalds
2012-05-31 20:53 ` J. Bruce Fields
2012-05-31 22:14 ` Linus Torvalds
2012-06-01 0:56 ` J. Bruce Fields
2012-06-01 11:17 ` J. Bruce Fields
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=20120531200138.GD25955@fieldses.org \
--to=bfields-uc3wqj2krung9huczpvpmw@public.gmane.org \
--cc=linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=torvalds-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org \
--cc=viro-RmSDqhL/yNMiFSDQTTA3OLVCufUGDwFn@public.gmane.org \
/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).