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