[PATCH 14/14] nvmet: use inline bio for passthru fast path
Chaitanya Kulkarni
Chaitanya.Kulkarni at wdc.com
Mon Aug 10 19:14:07 EDT 2020
On 8/10/20 15:47, Logan Gunthorpe wrote:
>> + }
>> +
>> + bio->bi_end_io = nvmet_passthru_bio_done;
> Why not just only set bi_end_io to bio_put if it's not an inline bio?
> Then we don't need the extra bio done function and an extra if() on
> every bio_put() call.
>
It is not a big difference, just keeping the code consistent in target.
More information about the Linux-nvme
mailing list