Re: [PATCH v20 02/12] Add infrastructure for copy offload in block and request layer.

Bart Van Assche
2024-05-31T23:45:16Z

On 5/31/24 03:17, Nitesh Shetty wrote:
> I see the following challenges with bio-chained approach.
> 1. partitioned device:
>     We need to add the code which iterates over all bios and adjusts
>     the sectors offsets.
> 2. dm/stacked device:
>     We need to make major changes in dm, such as allocating cloned
>     bios, IO splits, IO offset mappings. All of which need to
>     iterate over chained BIOs.
>
> Overall with chained BIOs we need to add a special handling only for copy
> to iterate over chained BIOs and do the same thing which is being done
> for single BIO at present.
> Or am I missing something here ?

Hmm ... aren't chained bios submitted individually? See e.g.
bio_chain_and_submit(). In other words, it shouldn't be necessary to
add any code that iterates over bio chains.

Thanks,

Bart.