From: NeilBrown <neilb@suse.de>
To: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
Cc: NFS <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH/RFC] remove incorrect "Lock reclaim failed" warning when delegation is in force.
Date: Mon, 12 Aug 2013 16:53:06 +1000 [thread overview]
Message-ID: <20130812165306.728d2841@notabene.brown> (raw)
In-Reply-To: <1375977089.4590.4.camel@leira.trondhjem.org>
[-- Attachment #1: Type: text/plain, Size: 1330 bytes --]
On Thu, 8 Aug 2013 15:51:30 +0000 "Myklebust, Trond"
<Trond.Myklebust@netapp.com> wrote:
> On Thu, 2013-08-08 at 12:59 +1000, NeilBrown wrote:
> > Hi,
> > I'm trying to track down a strange problem with state ids going bad
> > (possibly linked to ntp changing the system time on the non-Linux server)
> > and am still learning about how the state management works.
> >
> > But I've come across an error where I don't think there should be one.
> >
> > For whatever reason the client gets a BAD_STATEID on a file that it has a
> > lock on. The open gets a write delegation so that when it runs
> > nfs4_reclaim_locks(), nfs4_lock_reclaim aborts early without doing anything
> > (it doesn't need to because there is a delegation).
> > But the code below then checks that NFS_LOCK_INITIALIZED is set on all lock
> > states. But it isn't because nfs4_clear_open_state cleared it and
> > nfs4_lock_reclaim didn't bother setting it.
> >
> > So I think the error should only be printed if there is no delegated state,
> > hence this patch.
> >
> > Does it look right, or have I misunderstood something?
> >
>
> Hi Neil,
>
> That analysis looks correct. Can you resend the patch with an
> appropriate signed-off-by and changelog entry?
Thanks. I've resent separately.
NeilBrown
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
prev parent reply other threads:[~2013-08-12 6:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-08 2:59 [PATCH/RFC] remove incorrect "Lock reclaim failed" warning when delegation is in force NeilBrown
2013-08-08 15:51 ` Myklebust, Trond
2013-08-12 6:53 ` NeilBrown [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=20130812165306.728d2841@notabene.brown \
--to=neilb@suse.de \
--cc=Trond.Myklebust@netapp.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;
as well as URLs for NNTP newsgroup(s).