From: Benjamin Marzinski <bmarzins@redhat.com>
To: Mike Snitzer <snitzer@kernel.org>
Cc: Keith Busch <kbusch@kernel.org>,
axboe@kernel.dk, Mikulas Patocka <mpatocka@redhat.com>,
Keith Busch <kbusch@meta.com>,
dm-devel@lists.linux.dev, linux-block@vger.kernel.org,
"Dr. David Alan Gilbert" <linux@treblig.org>,
Vjaceslavs Klimovs <vklimovs@gmail.com>
Subject: Re: [PATCH 2/2] dm-raid1: don't fail the mirror for invalid I/O errors
Date: Thu, 9 Jul 2026 12:13:16 -0400 [thread overview]
Message-ID: <ak_InD1CX7GJXzJv@redhat.com> (raw)
In-Reply-To: <ak7cHXaWjVX6Uamj@redhat.com>
On Wed, Jul 08, 2026 at 07:24:14PM -0400, Benjamin Marzinski wrote:
> On Tue, Jul 07, 2026 at 03:44:54PM -0400, Mike Snitzer wrote:
> > On Mon, Jul 06, 2026 at 02:52:33PM -0600, Keith Busch wrote:
> > > On Wed, Jun 24, 2026 at 01:14:03PM +0200, Mikulas Patocka wrote:
> > So where does dm-raid1 and dm-crypt stand relative to these DIO memory
> > alignment changes? Inferring they are pretty exposed.
> >
> > > > BTW. I think that blk_path_error should also test for BLK_STS_INVAL and
> > > > return false, otherwise, dm-multipath would be suffering from this bug
> > > > too. Ben, could you test it?
> > >
> > > Good point.
> >
> > Would appreciate knowing if multipath exposed too.
>
> I can't make it happen. I can reproduce this using dm-mirror, but when I
> try with dm-multipath, it fails with BLK_STS_INVAL before it ever makes
> it into the request layer.
>
> blk_mq_submit_bio() -> __bio_split_to_limits() -> bio_split_rw() ->
> bio_split_rw_at() -> bio_split_io_at()
>
> bio_split_io_at() checks the bio_vec alignment and fails with -EINVAL,
> causing the bio to get failed.
However, as a general issue, I don't believe it's impossible to have an
unaligned bio_vec that returns false for bio_may_need_split(), so that
the splitting code will never get run. But if this is already getting
fixed earlier in the bio code, then the point is kind of moot.
In reference to changing blk_path_error(), multipath should only be
passing down requests that are valid on any of its paths, so it seems
reasonable to make the case that BLK_STS_INVAL is not a path error. But
if we are going to be checking the bios early against multipath's
limits, then it seems like the only reason we would get a BLK_STS_INVAL
is that multipath's limits don't work with the underlying path's. That
would likely mean there was a limit stacking bug, and who knows whether
another path would work better.
-Ben
> >
> > Thanks,
> > Mike
prev parent reply other threads:[~2026-07-09 16:13 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-16 15:05 [PATCH 1/2] dm-io: clone the source bio instead of copying its biovec Keith Busch
2026-06-16 15:05 ` [PATCH 2/2] dm-raid1: don't fail the mirror for invalid I/O errors Keith Busch
2026-06-16 17:54 ` Dr. David Alan Gilbert
2026-06-16 18:48 ` Keith Busch
2026-06-16 20:09 ` Dr. David Alan Gilbert
2026-06-16 23:45 ` Keith Busch
2026-06-16 23:47 ` Dr. David Alan Gilbert
2026-06-17 15:08 ` Keith Busch
2026-06-17 15:33 ` Dr. David Alan Gilbert
2026-06-17 16:21 ` Keith Busch
2026-06-17 16:44 ` Dr. David Alan Gilbert
2026-06-17 16:54 ` Keith Busch
2026-06-17 16:59 ` Dr. David Alan Gilbert
2026-06-19 2:07 ` Vjaceslavs Klimovs
2026-06-16 15:40 ` Keith Busch
2026-06-16 15:58 ` Keith Busch
2026-06-24 11:14 ` Mikulas Patocka
2026-07-06 20:52 ` Keith Busch
2026-07-07 19:44 ` Mike Snitzer
2026-07-08 17:57 ` Keith Busch
2026-07-08 23:24 ` Benjamin Marzinski
2026-07-09 16:13 ` Benjamin Marzinski [this message]
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=ak_InD1CX7GJXzJv@redhat.com \
--to=bmarzins@redhat.com \
--cc=axboe@kernel.dk \
--cc=dm-devel@lists.linux.dev \
--cc=kbusch@kernel.org \
--cc=kbusch@meta.com \
--cc=linux-block@vger.kernel.org \
--cc=linux@treblig.org \
--cc=mpatocka@redhat.com \
--cc=snitzer@kernel.org \
--cc=vklimovs@gmail.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