mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Martin Wilck <martin.wilck@suse.com>
To: Kenta Akagi <k@mgml.me>, xiao@kernel.org, magiclinan@didiglobal.com
Cc: linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org,
	song@kernel.org, 	yukuai@fnnas.com, shli@fb.com,
	mtkaczyk@kernel.org
Subject: Re: [PATCH v6 1/2] md: Don't set MD_BROKEN for RAID1 and RAID10 when using FailFast
Date: Thu, 24 Sep 2026 19:59:35 +0200	[thread overview]
Message-ID: <c1ba66d1bb5c498197559749842b5b470c06f4f2.camel@suse.com> (raw)
In-Reply-To: <010601a0d43e61ad-9dfd0eee-a057-45eb-b5cd-dfe9d892d4cf-000000@ap-northeast-1.amazonses.com>

On Thu, 2026-09-24 at 16:27 +0000, Kenta Akagi wrote:
> 
> 
> On 2026/09/23 17:29, Martin Wilck wrote:
> > Hi Kenta,
> > 
> > On Wed, 2026-09-23 at 04:08 +0000, Kenta Akagi wrote:
> > > 
> > > 
> > > Hi Martin,
> > > 
> > > I have not given up on it, but I have not managed to post v7 yet.
> > > I still think failfast should be usable even in setups like that.
> > > 
> > > It has been a while, but I intend to resume work on it.
> > 
> > My thinking is that, in the fastfail case, code to prevent total
> > failure could be placed in the end-IO code code path, e.g. by
> > attempting a retry directly from the md layer when the last rdev
> > fails,
> > instead of setting failing the device. But I haven't thought it
> > through.
> 
> Hi Martin,
> 
> I may be misunderstanding your suggestion, but Neil's original
> failfast 
> implementation already retries a failed failfast I/O to the last
> rdev. 
> But a later change introduced a regression, which I intend to fix.

Ah OK, I wasn't aware of that.

> So the sequence should be:
> 
> 1. The failfast bios to all mirrored rdevs fail.
> 2. The first rdev is marked faulty because its bio failed.
> 3. The other rdev is now the last, so it is not marked faulty.
> 4. Since the last rdev remains usable, its bio error handler 
>    retries the I/O without failfast.

Yes, that makes sense to me.

Martin

-- 
Dr. Martin Wilck <mwilck@suse.com>
SUSE Software Solutions Germany GmbH, Frankenstr. 146, 90461 Nürnberg,
Germany
Geschäftsführer: Stefan Gaiser, Jochen Jaser, Abhinav Puri (HRB
36809,AG Nürnberg)

  reply	other threads:[~2026-09-24 17:59 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-05 14:40 [PATCH v6 0/2] Don't set MD_BROKEN on failfast bio failure Kenta Akagi
2026-01-05 14:40 ` [PATCH v6 1/2] md: Don't set MD_BROKEN for RAID1 and RAID10 when using FailFast Kenta Akagi
2026-01-06  2:57   ` Li Nan
2026-01-06  7:59     ` Xiao Ni
2026-01-06  9:11       ` Li Nan
2026-01-06  9:25         ` Xiao Ni
2026-01-06 11:14           ` Li Nan
2026-01-06 12:30     ` Kenta Akagi
2026-01-07  2:09       ` Li Nan
2026-01-07  3:35       ` Xiao Ni
2026-01-07  6:43         ` Kenta Akagi
2026-01-16  2:04         ` Kenta Akagi
2026-09-17 13:58           ` Martin Wilck
2026-09-23  4:08             ` Kenta Akagi
2026-09-23  8:29               ` Martin Wilck
2026-09-24 16:27                 ` Kenta Akagi
2026-09-24 17:59                   ` Martin Wilck [this message]
2026-01-05 14:40 ` [PATCH v6 2/2] md/raid10: fix failfast read error not rescheduled Kenta Akagi

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=c1ba66d1bb5c498197559749842b5b470c06f4f2.camel@suse.com \
    --to=martin.wilck@suse.com \
    --cc=k@mgml.me \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-raid@vger.kernel.org \
    --cc=magiclinan@didiglobal.com \
    --cc=mtkaczyk@kernel.org \
    --cc=shli@fb.com \
    --cc=song@kernel.org \
    --cc=xiao@kernel.org \
    --cc=yukuai@fnnas.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

all inboxes | Powered by JetHome®