public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Mark Tinguely <tinguely@sgi.com>
To: Dave Chinner <david@fromorbit.com>
Cc: xfs@oss.sgi.com
Subject: Re: Metadata CRC error upon unclean unmount
Date: Fri, 27 Jun 2014 09:26:35 -0500	[thread overview]
Message-ID: <53AD7F1B.500@sgi.com> (raw)
In-Reply-To: <20140626224727.GS9508@dastard>

On 06/26/14 17:47, Dave Chinner wrote:
> On Thu, Jun 26, 2014 at 03:03:53PM -0500, Mark Tinguely wrote:

>> Could an out of order CIL push cause this?
>
> I don't think so - the issue appears to be that a CRC is not being
> recalculated on a buffer before IO has been issued to disk, not that
> there is incorrect metadata in the buffer. Regardless of how we
> modify the buffer, the CRC should always match the contents of the
> block on disk because we calculate it with the buffer locked and
> just prior to it being written.
>
>> SGI saw sequence 2 (and sometimes 3/4) of the cil push get in front
>> of cil push sequence 1. Looks like the setting of
>> log->l_cilp->xc_ctx->commit_lsn in xlog_cil_init_post_recovery()
>> lets this happen.
>
> I don't think can actually happen - the CIL is not used until after
> xlog_cil_init_post_recovery() is completed and transactions start
> during EFI recovery. Any attempt to use it prior to that call will
> oops on the null ctx_ticket.
>
> As for the ordering issue, I'm pretty sure that was fixed in
> commit f876e44 ("xfs: always do log forces via the workqueue").

The problem will be with the first CIL push *after* the 
xlog_cil_init_post_recovery() especially if the first ctx has a large 
vector list and the following ones have small ones.

Looks to me that the problem is still in the cil push worker.

--Mark.



_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  reply	other threads:[~2014-06-27 14:26 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-24 16:01 Metadata CRC error upon unclean unmount Fanael Linithien
2014-06-24 16:04 ` Grozdan
2014-06-24 16:08 ` Eric Sandeen
2014-06-24 16:19   ` Fanael Linithien
2014-06-24 16:24     ` Eric Sandeen
2014-06-24 16:37       ` Fanael Linithien
2014-06-24 18:48     ` Eric Sandeen
2014-06-24 19:00       ` Fanael Linithien
2014-06-24 19:45         ` Eric Sandeen
2014-06-24 20:19 ` Dave Chinner
2014-06-24 20:44   ` Fanael Linithien
2014-06-24 21:50   ` Fanael Linithien
2014-06-25  1:21     ` Dave Chinner
2014-06-25 15:28       ` Fanael Linithien
2014-06-25 16:09       ` Fanael Linithien
2014-06-25 22:03         ` Dave Chinner
2014-06-25 22:33           ` Fanael Linithien
2014-06-25 23:22             ` Dave Chinner
2014-06-25 23:32               ` Fanael Linithien
2014-06-25 23:52                 ` Dave Chinner
2014-06-26  0:28       ` Dave Chinner
2014-06-26  2:23         ` Dave Chinner
2014-06-26 20:03         ` Mark Tinguely
2014-06-26 22:47           ` Dave Chinner
2014-06-27 14:26             ` Mark Tinguely [this message]
2014-06-28  0:49               ` Dave Chinner
2014-06-29 16:19                 ` Mark Tinguely

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=53AD7F1B.500@sgi.com \
    --to=tinguely@sgi.com \
    --cc=david@fromorbit.com \
    --cc=xfs@oss.sgi.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