From: Dave Chinner <david@fromorbit.com>
To: xfs@oss.sgi.com
Subject: Re: [PATCH] xfs: fix broken error handling in xfs_vm_writepage
Date: Mon, 12 Nov 2012 11:58:35 +1100 [thread overview]
Message-ID: <20121112005835.GP24575@dastard> (raw)
In-Reply-To: <1352681350-28541-1-git-send-email-david@fromorbit.com>
On Mon, Nov 12, 2012 at 11:49:10AM +1100, Dave Chinner wrote:
> From: Dave Chinner <dchinner@redhat.com>
>
> When we shut down the filesystem, it might first be detected in
> writeback when we are allocating a inode size transaction. This
> happens after we have moved all the pages into the writeback state
> and unlocked them. Unfortunately, if we fail to set up the
> transaction we then abort writeback and try to invalidate the
> current page. This then triggers are BUG() in block_invalidatepage()
> because we are trying to invalidate an unlocked page.
FWIW, I found this problem when testing recovery of wrapped log
buffers. The test:
$ cat t.sh
#!/bin/bash
while [ 1 ]; do
mkfs.xfs -f /dev/vdb > /dev/null 2>&1
mount /dev/vdb /mnt/scratch
./compilebench -D /mnt/scratch > /dev/null 2>&1 &
sleep 36
/home/dave/src/xfstests-dev/src/godown /mnt/scratch
sleep 5
umount /mnt/scratch
xfs_logprint -d /dev/vdb |grep -B 1 "^\["
mount /dev/vdb /mnt/scratch
umount /mnt/scratch
done
would fail after 3-4 iterations due to the BUG() in
block_invalidatepage(). This fix has been running that loop for 2
hours now, so it's gone through over a hundred iterations without
failing now - it takes about 45s an iteration to run. Note that this
is also exercising the wrapped log buffer recovery fix on every
iteration, too.... :)
And FWIW, this probably should have a cc: <stable@vger.kernel.org>
on it as well, as it is a recent regression that turns a shutdown
into hard failure....
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2012-11-12 0:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-12 0:49 [PATCH] xfs: fix broken error handling in xfs_vm_writepage Dave Chinner
2012-11-12 0:58 ` Dave Chinner [this message]
[not found] <1353625410-1413-1-git-send-email-peterhuewe@gmx.de>
2012-11-23 1:01 ` Dave Chinner
2012-11-23 7:44 ` Peter Hüwe
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=20121112005835.GP24575@dastard \
--to=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