[PATCH v3 03/30] block: Remove req_bio_endio()
Christoph Hellwig
hch at lst.de
Wed Mar 27 21:13:23 PDT 2024
On Thu, Mar 28, 2024 at 09:43:42AM +0900, Damien Le Moal wrote:
> Moving req_bio_endio() code into its only caller, blk_update_request(),
> allows reducing accesses to and tests of bio and request fields. Also,
> given that partial completions of zone append operations is not
> possible and that zone append operations cannot be merged, the update
> of the BIO sector using the request sector for these operations can be
> moved directly before the call to bio_endio().
Note that we should actually be able to support merging zone appends.
And this patch actually moves the assignment to the right place to be
able to deal with it, we'll just need to track the start offset to the
start of the request so that we can assign the right bi_sector.
Reviewed-by: Christoph Hellwig <hch at lst.de>
More information about the Linux-nvme
mailing list