From: "Darrick J. Wong" <djwong@kernel.org>
To: Andrea Tomassetti <andrea.tomassetti@devo.com>
Cc: fstests@vger.kernel.org, xfs <linux-xfs@vger.kernel.org>
Subject: Re: xfs/311 test pass but leave block device unusable
Date: Thu, 20 Jan 2022 10:02:28 -0800 [thread overview]
Message-ID: <20220120180228.GE13514@magnolia> (raw)
In-Reply-To: <CAG2S0o-wJc-2_wm=35mE5Lt0e4idXwb3g5ezc9=LdWrLHfRM_Q@mail.gmail.com>
[cc xfs list]
On Thu, Jan 20, 2022 at 12:04:47PM +0100, Andrea Tomassetti wrote:
> Hi all,
> I was using the (x)fstest utility on the Kernel 5.11 to try to
> reproduce some xfs-related issues:
> INFO: task xfs-conv/dm-3:1360 blocked for more than 120 seconds.
> Workqueue: xfs-conv/dm-3 xfs_end_io [xfs]
> Call Trace:
> __schedule+0x44c/0x8a0
> schedule+0x4f/0xc0
> xlog_grant_head_wait+0xb5/0x1a0 [xfs]
> xlog_grant_head_check+0xe1/0x100 [xfs]
Threads are stuck waiting for log space; can you post the full dmesg?
And the xfs_info output of the test device?
> When I realized that xfs test n. 311 was passing correctly but every
> further attempt to use the block device (e.g. mount it) was failing.
> The issue is reproducible after reboot.
>
> Test passed:
> ./check xfs/311
> FSTYP -- xfs (non-debug)
> PLATFORM -- Linux/x86_64 test 5.11.0-1021-aws
> #22~20.04.2-Ubuntu SMP Wed Oct 27 21:27:13 UTC 2021
> MKFS_OPTIONS -- -f /dev/xvdz
> MOUNT_OPTIONS -- /dev/xvdz /home/test/z
>
> xfs/311 25s ... 25s
> Ran: xfs/311
> Passed all 1 tests
>
> Fail:
> # mount /dev/xvdz /home/test/z/
> mount: /home/test/z: /dev/xvdz already mounted or mount point busy.
> [ 2222.028417] /dev/xvdz: Can't open blockdev
>
> lsof does not show anything that is using either /dev/xvdz or /home/test/z
>
> Any idea why is this happening?
xfs-conv handles unwritten extent conversion after writeback, so I would
speculate (without dmesg data) that everyone got wedged trying to start
a transaction, and the log is blocked up for whatever reason.
> The `xlog_grant_head_wait` race issue has been resolved in a later
> Kernel version, am I right?
Beats me.
> Best regards,
> Andrea
>
> --
>
>
>
>
>
>
>
> The contents of this email are confidential. If the reader of this
Not anymore they aren't.
--D
> message is not the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited. If you have received this communication in error, please notify
> us immediately by replying to this message and deleting it from your
> computer. Thank you. Devo, Inc; arco@devo.com <mailto:arco@devo.com>;
> Calle Estébanez Calderón 3-5, 5th Floor. Madrid, Spain 28020
>
next parent reply other threads:[~2022-01-20 18:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAG2S0o-wJc-2_wm=35mE5Lt0e4idXwb3g5ezc9=LdWrLHfRM_Q@mail.gmail.com>
2022-01-20 18:02 ` Darrick J. Wong [this message]
2022-01-21 10:20 ` xfs/311 test pass but leave block device unusable Andrea Tomassetti
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=20220120180228.GE13514@magnolia \
--to=djwong@kernel.org \
--cc=andrea.tomassetti@devo.com \
--cc=fstests@vger.kernel.org \
--cc=linux-xfs@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