[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <510600c4-5ff3-a02e-de6d-020fad771425@huaweicloud.com>
Date: Mon, 25 Aug 2025 14:15:49 +0800
From: Yu Kuai <yukuai1@...weicloud.com>
To: Yu Kuai <yukuai1@...weicloud.com>, Christoph Hellwig <hch@...radead.org>
Cc: axboe@...nel.dk, neil@...wn.name, akpm@...ux-foundation.org,
linux-block@...r.kernel.org, linux-raid@...r.kernel.org,
linux-kernel@...r.kernel.org, colyli@...nel.org, xni@...hat.com,
yi.zhang@...wei.com, yangerkun@...wei.com, johnny.chenyi@...wei.com,
tieren@...as.com, "yukuai (C)" <yukuai3@...wei.com>
Subject: Re: [PATCH] block: fix disordered IO in the case recursive split
Hi,
在 2025/08/21 17:37, Yu Kuai 写道:
> 在 2025/08/21 17:02, Christoph Hellwig 写道:
>> 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
>
> Just take a look, this is
>
> old bio->new bio
>
> while bio split is:
>
> new_bio->old bio
>
> So xfs_rw_bdev won't flag old bio as BIO_CHAIN, while old bio will still
> be resubmitted to current->bio_list, hence this patch won't break this
> case, right?
And xfs_rw_bdev() is not under submit_bio() context, current->bio_list
is still NULL, means xfs_rw_bdev() is submitting bio one by one in the
right lba order, the bio recursive handling is not related in this case.
Thanks,
Kuai
Powered by blists - more mailing lists