From: Robert White <rwhite@pobox.com>
To: linux-btrfs@vger.kernel.org
Subject: hung task timer + btrfs_convert or btrfs balance = OOPS
Date: Wed, 23 Apr 2014 13:44:21 -0700 [thread overview]
Message-ID: <53582625.3030800@pobox.com> (raw)
The first mount of a non-trivial file system after a btrfs_convert, or
an ongoing btrfs balance operation containing large files may lead to an
oops (and a pathologically damaged file system) if the hang check timer
(CONFIG_DETECT_HUNG_TASK=y) is compiled into the linux kernel and not
disabled.
I've had two systems destroyed after a btrfs_convert. After the
conversion the first mount took several minutes. The hung task timer
expired against some internal btrfs_daemon. I think it was
'[btrfs-transacti]'. Said task then goes oops and the file system was
chock full of errors. So many that I no longer trusted the conversion so
mkfs.btrfs and restored from backup.
On another system the same thing happened after a successful convert and
mount (I'd remembered to disable the timer during the first mount) when
a btrfs balance was running.
Whatever is blocking in that task really ought not to do that for 2+
minutes and sleep on some data structure instead.
As it is, the two options are not happy together. Be sure to
echo 0 > /proc/sys/kernel/hung_task_timeout_secs
to disable the timer before doing a mount or balance after a
btrfs_convert (and possibly a btrfs balance if it decides to move a very
large file like a VM disk image).
next reply other threads:[~2014-04-23 20:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-23 20:44 Robert White [this message]
2014-04-23 21:12 ` hung task timer + btrfs_convert or btrfs balance = OOPS Marc MERLIN
2014-04-23 22:59 ` Robert White
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=53582625.3030800@pobox.com \
--to=rwhite@pobox.com \
--cc=linux-btrfs@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).