From: Hannes Reinecke <hare@suse.de>
To: Christoph Hellwig <hch@infradead.org>, Yu Kuai <yukuai1@huaweicloud.com>
Cc: axboe@kernel.dk, neil@brown.name, akpm@linux-foundation.org,
linux-block@vger.kernel.org, linux-raid@vger.kernel.org,
linux-kernel@vger.kernel.org, colyli@kernel.org, xni@redhat.com,
yi.zhang@huawei.com, yangerkun@huawei.com,
johnny.chenyi@huawei.com, "yukuai (C)" <yukuai3@huawei.com>
Subject: Re: [PATCH] block: fix disordered IO in the case recursive split
Date: Thu, 21 Aug 2025 11:33:59 +0200 [thread overview]
Message-ID: <7db2eb2c-9566-4d6b-9f82-a0f65110a807@suse.de> (raw)
In-Reply-To: <aKbgqoF0UN4_FbXO@infradead.org>
On 8/21/25 11:02, Christoph Hellwig wrote:
> On Thu, Aug 21, 2025 at 04:56:33PM +0800, Yu Kuai wrote:
>> Can you give some examples as how to chain the right way?
>
> fs/xfs/xfs_bio_io.c: xfs_rw_bdev
> fs/xfs/xfs_buf.c: xfs_buf_submit_bio
> fs/xfs/xfs_log.c: xlog_write_iclog
>
>> BTW, for all
>> the io split case, should this order be fixed? I feel we should, this
>> disorder can happen on any stack case, where top max_sector is greater
>> than stacked disk.
>
> Yes, I've been trying get Bart to fix this for a while instead of
> putting in a workaround very similar to the one proposed here,
> but so far nothing happened.
>
>
This feels like a really stupid fix, but wouldn't that help?
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 023649fe2476..2b342bb59612 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -5478,7 +5478,6 @@ static struct bio *chunk_aligned_read(struct mddev
*mddev, struct bio *raid_bio)
split = bio_split(raid_bio, sectors, GFP_NOIO,
&conf->bio_split);
bio_chain(split, raid_bio);
submit_bio_noacct(raid_bio);
- raid_bio = split;
}
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@suse.de +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich
next prev parent reply other threads:[~2025-08-21 9:34 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-21 7:47 Yu Kuai
2025-08-21 8:06 ` Coly Li
2025-08-21 8:43 ` Christoph Hellwig
2025-08-21 8:56 ` Yu Kuai
2025-08-21 9:02 ` Christoph Hellwig
2025-08-21 9:33 ` Hannes Reinecke [this message]
2025-08-21 9:42 ` Yu Kuai
2025-08-21 9:37 ` Yu Kuai
2025-08-25 6:15 ` Yu Kuai
2025-08-25 9:15 ` Christoph Hellwig
2025-08-25 9:17 ` Christoph Hellwig
2025-08-25 9:49 ` Yu Kuai
2025-08-21 15:19 ` Bart Van Assche
2025-08-21 9:16 ` Coly Li
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=7db2eb2c-9566-4d6b-9f82-a0f65110a807@suse.de \
--to=hare@suse.de \
--cc=akpm@linux-foundation.org \
--cc=axboe@kernel.dk \
--cc=colyli@kernel.org \
--cc=hch@infradead.org \
--cc=johnny.chenyi@huawei.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-raid@vger.kernel.org \
--cc=neil@brown.name \
--cc=xni@redhat.com \
--cc=yangerkun@huawei.com \
--cc=yi.zhang@huawei.com \
--cc=yukuai1@huaweicloud.com \
--cc=yukuai3@huawei.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®