From: Jeff Layton <jlayton@redhat.com>
To: "J. Bruce Fields" <bfields@fieldses.org>
Cc: "david m. richter" <richterd@citi.umich.edu>,
Oleg Drokin <Oleg.Drokin@Sun.COM>,
Marc Eshel <eshel@almaden.ibm.com>,
linux-fsdevel@vger.kernel.org, Manoj Naik <manoj@almaden.ibm.com>
Subject: Re: NFS client hang on attempt to do async blocking posix lock enqueue
Date: Fri, 8 Feb 2008 16:27:16 -0500 [thread overview]
Message-ID: <20080208162716.2cebb621@tleilax.poochiereds.net> (raw)
In-Reply-To: <20080208211228.GJ6871@fieldses.org>
On Fri, 8 Feb 2008 16:12:28 -0500
"J. Bruce Fields" <bfields@fieldses.org> wrote:
> On Fri, Feb 08, 2008 at 03:54:14PM -0500, Jeff Layton wrote:
> > Interesting. It's not clear me why the underlying filesystem would make
> > any difference there. Though now that I look, it looks like fl_grant
> > really only gets called from dlm code, and that queues up the block for
> > an immediate grant callback attempt. So perhaps that's the reason.
>
> The asynchronous locking interface does something slightly cheesy for
> blocking locks--instead of waiting for the filesystem to respond, it
> just sends back a deny immediately (even if the lock might actually be
> available), then responds later with a granted message when it discovers
> it's available.
>
> That works, but we should make it just wait to send the reply to the
> original lock request until we've got a real answer, as we do for
> nonblocking lock requests. And in fact someone submitted a patch to do
> that--I just haven't gotten the time to review it. Urp.
>
> So anyway the effect is that on ext3 this particular lock wouldn't have
> required a grant reply, whereas on gfs2 it does.
>
> Of course, what this means is that we'd hit the same problem on ext3 too
> if the lock request did in fact legitimately block. So grant callbacks
> probably have never worked on ext3 over the loopback interface either.
> Oops!
>
As best I can tell, the whole problem with rpc_pings was introduced
when we moved everything to the rpcbind stuff. Before that we generally
never did an rpc_ping when binding the client. This probably did work
until that was introduced.
> I bet nobody's ever noticed because we manage to recover by retrying the
> lock after it's available (whereas in the gfs2 case the retry hits the
> same problem). So in practice for ext3 this probably just means
> blocking lock requests take a lot longer over loopback then they would
> otherwise. And probably the only people that care about nlm performance
> don't usually do local mounts like that.
>
--
Jeff Layton <jlayton@redhat.com>
next prev parent reply other threads:[~2008-02-08 21:31 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-29 19:15 NFS client hang on attempt to do async blocking posix lock enqueue J. Bruce Fields
2007-11-29 22:41 ` Marc Eshel
2008-01-18 23:07 ` J. Bruce Fields
2008-01-20 14:58 ` Oleg Drokin
2008-02-07 23:26 ` J. Bruce Fields
2008-02-08 12:15 ` Jeff Layton
2008-02-08 14:33 ` J. Bruce Fields
2008-02-08 18:49 ` david m. richter
2008-02-08 20:54 ` Jeff Layton
2008-02-08 21:12 ` J. Bruce Fields
2008-02-08 21:27 ` Jeff Layton [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-11-29 19:04 Oleg Drokin
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=20080208162716.2cebb621@tleilax.poochiereds.net \
--to=jlayton@redhat.com \
--cc=Oleg.Drokin@Sun.COM \
--cc=bfields@fieldses.org \
--cc=eshel@almaden.ibm.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=manoj@almaden.ibm.com \
--cc=richterd@citi.umich.edu \
/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).