From: Keith Busch <kbusch@kernel.org>
To: Shinichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Cc: Keith Busch <kbusch@meta.com>,
"linux-block@vger.kernel.org" <linux-block@vger.kernel.org>
Subject: Re: [PATCH blktests] create a test for direct io offsets
Date: Mon, 20 Oct 2025 15:03:48 -0600 [thread overview]
Message-ID: <aPajtDhrfncyZHPq@kbusch-mbp> (raw)
In-Reply-To: <bihyeax4gcwr3ayy64bkdaccnjuyv6gp5fz6wxgnmwuhjy6be5@rxakhphw5445>
On Mon, Oct 20, 2025 at 12:40:07PM +0000, Shinichiro Kawasaki wrote:
> > +static void test_full_size_aligned()
> > +{
> > + int ret;
> > +
> > + memset(in_buf, 0, buf_size);
> > + ret = pwrite(test_fd, out_buf, buf_size, 0);
>
> As I noted before, when I tried with QEMU SAS drive, the buf_size is large
> (192MiB) and pwrite returned the value smaller than that (128MiB). This
> caused the compare() failure below. How about to check the return values
> from pwrite() and pread(), and pass it to compare()?
Oh, short writes are not expected. I should check that the actual
written matched the requested total. I wonder why it's bailing out part
way through, though.
> > + if (ret < 0) {
> > + if (should_fail)
> > + return;
> > + err(errno, "%s: failed to write buf", __func__);
>
> When I ran the test with QEMU SATA drive, it failed here. The drive
> had virt_boundary=1. I'm not sure if it means test side bug or kernel side bug.
Hm, I tested QEMU's AHCI and that seems okay. Is that what you're using
to attach the "SATA" drive? I'd like to recreate this and figure out
what's going on here.
If this test says virt_boundary is 1 for your device, that should mean
there is no virtual bounday to consider; this test should succeed with
those reported queue limits.
next prev parent reply other threads:[~2025-10-20 21:03 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-14 20:54 [PATCH blktests] create a test for direct io offsets Keith Busch
2025-10-14 21:21 ` Bart Van Assche
2025-10-14 21:59 ` Keith Busch
2025-10-17 11:13 ` Christoph Hellwig
2025-10-20 16:20 ` Keith Busch
2025-10-21 5:28 ` Christoph Hellwig
2025-10-21 21:22 ` Keith Busch
2025-10-22 4:46 ` Christoph Hellwig
2025-11-17 21:53 ` Keith Busch
2025-11-18 5:54 ` Christoph Hellwig
2025-10-20 12:40 ` Shinichiro Kawasaki
2025-10-20 21:03 ` Keith Busch [this message]
2025-10-21 1:32 ` Shinichiro Kawasaki
2025-10-20 23:25 ` Chaitanya Kulkarni
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=aPajtDhrfncyZHPq@kbusch-mbp \
--to=kbusch@kernel.org \
--cc=kbusch@meta.com \
--cc=linux-block@vger.kernel.org \
--cc=shinichiro.kawasaki@wdc.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