From: Eric Sandeen <sandeen@sandeen.net>
To: Brian Foster <bfoster@redhat.com>, Xu Wang <xuw@redhat.com>
Cc: xfs@oss.sgi.com
Subject: Re: [PATCH] xfs: lock for removing item from cil->xc_cil in xlog_cil_push
Date: Fri, 10 Oct 2014 23:19:36 -0500 [thread overview]
Message-ID: <5438AFD8.6060105@sandeen.net> (raw)
In-Reply-To: <20141010120754.GB18297@bfoster.bfoster>
On 10/10/14 7:07 AM, Brian Foster wrote:
> Isn't this fixed by the following commit?
>
> 8af3dcd3 xfs: xlog_cil_force_lsn doesn't always wait correctly
>
> With that patch, xlog_cil_push() adds the ctx to the committing list
> before draining the ctx and updating the current sequence number.
> xlog_cil_force_lsn() walks the committing list and checks the sequence
> number and ctx list, all under the push lock.
>
> That means that xlog_cil_force_lsn() should see the ctx either on the
> committing list and wait for it (commit_lsn != NULL), or not on the
> committing list at all. If it's not on the committing list yet,
> xlog_cil_push() won't have either drained the ctx or updated the
> sequence number, as it adds to the committing list first and that
> requires the push lock (which xlog_cil_force_lsn() holds and doesn't
> release until after the restart check).
>
> Am I missing something? Do you reproduce a problem with the latest tree
> that includes the above patch?
We clarified that Dave's patch does fix the problem; this was a Red Hat
bug, and I hadn't put the upstream commit into it yet, sorry about that.
George, thanks for working on it!
-Eric
> Brian
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
prev parent reply other threads:[~2014-10-11 4:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <929991500.42327290.1412926226461.JavaMail.zimbra@redhat.com>
2014-10-10 7:31 ` [PATCH] xfs: lock for removing item from cil->xc_cil in xlog_cil_push Xu Wang
2014-10-10 12:07 ` Brian Foster
2014-10-11 4:19 ` Eric Sandeen [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=5438AFD8.6060105@sandeen.net \
--to=sandeen@sandeen.net \
--cc=bfoster@redhat.com \
--cc=xfs@oss.sgi.com \
--cc=xuw@redhat.com \
/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