On 2021/6/28 6:24, Jens Axboe wrote:
On 6/26/21 4:47 AM, Yufen Yu wrote:Since bio_endio() will call bio_uninit() for us, we can remove it from current code path.What about the error path?
Before calling submit_bio(), we don't need bio_uninit(). After calling submit_bio(), any error path will call bio_endio() to end the bio. So, I think we can remove it in current path. Thanks Yufen