From: Chris Webb <chris@arachsys.com>
To: Kent Overstreet <kent.overstreet@gmail.com>
Cc: linux-bcachefs@vger.kernel.org
Subject: Kernel hang with excessive resize-journal on replicated fs
Date: Sun, 24 Oct 2021 14:26:39 +0100 [thread overview]
Message-ID: <20211024132638.GI11670@arachsys.com> (raw)
The following ktest hangs in the kernel instead of producing an error from the
excessive journal resize:
test_oversize_journal()
{
bcachefs format --errors=panic --replicas=2 /dev/sd[bc]
mount -t bcachefs /dev/sdb:/dev/sdc /mnt
# should fail, but actually hangs:
! bcachefs device resize-journal /dev/sdb $(blockdev --getsize64 /dev/sdb)
umount /mnt
}
(It would correctly return with an error on a single-device filesystem.)
The kernel is continuously looping on ret == -EAGAIN in
bch2_set_nr_journal_buckets. The disk reservation (unexpectedly) succeeds but
__bch2_set_nr_journal_buckets then keeps returning -EAGAIN because
bch2_bucket_alloc (correctly) fails.
Is the problem here that the disk reservation isn't confined to the specific
device we then want to allocate from? So although the space is available, it's
not available solely on the device where we want it?
Best wishes,
Chris.
next reply other threads:[~2021-10-24 13:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-24 13:26 Chris Webb [this message]
2021-10-24 16:54 ` Kernel hang with excessive resize-journal on replicated fs Kent Overstreet
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=20211024132638.GI11670@arachsys.com \
--to=chris@arachsys.com \
--cc=kent.overstreet@gmail.com \
--cc=linux-bcachefs@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