On 10/19/21 1:06 PM, Pavel Begunkov wrote: > On 10/19/21 19:59, Jens Axboe wrote: >> Track the current error status of the dio with DIO_ERROR in the flags, >> which can then avoid diving into dio->bio for the fast path of not >> having any errors. This reduces the overhead of the function nicely, >> which was previously dominated by this seemingly cheap check: >> >> 4.55% -1.13% [kernel.vmlinux] [k] blkdev_bio_end_io_async > > Jens, something gone wrong here. blkdev_bio_end_io_async() is a > function from my not yet published branch, the perf here is for it, > but the patch tackles blkdev_bio_end_io(). Yeah, see followup email... -- Jens Axboe