From: David Teigland <teigland@redhat.com>
To: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Jeff Layton <jlayton@redhat.com>, linux-nfs@vger.kernel.org
Subject: Re: [PATCH] lockd: handle fl_grant callbacks with coalesced locks (RFC)
Date: Mon, 19 Jan 2009 16:54:00 -0600 [thread overview]
Message-ID: <20090119225400.GA23086@redhat.com> (raw)
In-Reply-To: <20090115163014.GA6602@redhat.com>
> On Wed, Dec 17, 2008 at 03:01:56PM -0500, J. Bruce Fields wrote:
> > On Wed, Dec 17, 2008 at 01:14:53PM -0600, David Teigland wrote:
> > Also, since flc is never actually handed to the posix lock system, I
> > think it should be a "shallow" lock copy--so it should be created with
> > __locks_copy_lock(). Something like the below?
> (I'd like to do the s/locks_copy_lock/__locks_copy_lock/ in a separate
> patch since it's not directly related to fixing the bug.)
I haven't looked at why, but s/locks_copy_lock/__locks_copy_lock/ creates
problems with the file_lock's kept by the vfs. With two programs doing
locking on an nfs client I get lots of messages like this on the server:
dlm: dlm_plock_callback: vfs lock error -11 num 20573 file
ffff88007e16a818 fl ffff88007dc796b0
dlm: dlm_plock_callback: vfs lock error -11 num 2055f file
ffff88007e16a818 fl ffff88007dc796b0
dlm: dlm_plock_callback: vfs lock error -11 num 2058b file
ffff880017cf56d0 fl ffff88007e566750
dlm: dlm_plock_callback: vfs lock error -11 num 2055c file
ffff88007e16a818 fl ffff88007e566750
(code modified to report the -11 / -EAGAIN)
And /proc/locks on the server has entries that look like:
54: POSIX *NOINODE* WRITE 8682 <none>:0 5 9
55: POSIX *NOINODE* READ 8682 <none>:0 0 4
56: POSIX *NOINODE* READ 8682 <none>:0 0 4
57: POSIX *NOINODE* READ 8682 <none>:0 5 9
58: POSIX *NOINODE* READ 8682 <none>:0 5 9
59: POSIX *NOINODE* WRITE 8682 <none>:0 0 4
My tests are looking good using the current locks_copy_lock(), so I plan
to just stick with that.
Dave
prev parent reply other threads:[~2009-01-19 22:54 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-19 21:37 [PATCH] lockd: handle fl_grant callbacks with coalesced locks (RFC) Jeff Layton
2008-11-22 1:15 ` J. Bruce Fields
2008-11-24 15:33 ` Jeff Layton
[not found] ` <20081124103313.0c779324-RtJpwOs3+0O+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2008-11-24 17:06 ` J. Bruce Fields
2008-11-25 15:12 ` Jeff Layton
2008-12-13 12:40 ` Jeff Layton
[not found] ` <20081213074042.2e8223c3-RtJpwOs3+0O+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2008-12-16 19:38 ` J. Bruce Fields
2008-12-16 19:56 ` J. Bruce Fields
2008-12-16 21:11 ` Jeff Layton
[not found] ` <20081216161158.2d173667-RtJpwOs3+0O+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2008-12-17 19:14 ` David Teigland
2008-12-17 20:01 ` J. Bruce Fields
2008-12-17 21:28 ` David Teigland
2009-01-20 23:05 ` J. Bruce Fields
2009-01-20 23:15 ` J. Bruce Fields
2009-01-15 16:30 ` David Teigland
2009-01-19 22:54 ` David Teigland [this message]
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=20090119225400.GA23086@redhat.com \
--to=teigland@redhat.com \
--cc=bfields@fieldses.org \
--cc=jlayton@redhat.com \
--cc=linux-nfs@vger.kernel.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