]> git.baikalelectronics.ru Git - kernel.git/commit
block: add bio_start_io_acct_time() to control start_time
authorMike Snitzer <snitzer@redhat.com>
Fri, 28 Jan 2022 15:58:39 +0000 (10:58 -0500)
committerJens Axboe <axboe@kernel.dk>
Fri, 28 Jan 2022 19:28:15 +0000 (12:28 -0700)
commit4d21f530299b335ca2a39119c136bab2b2574fae
tree400e9f98f15e02b8dd587ace3c13a6e0ae37f3a2
parent3e8b311cf9d49a28cfd45226649d8c6416278f00
block: add bio_start_io_acct_time() to control start_time

bio_start_io_acct_time() interface is like bio_start_io_acct() that
allows start_time to be passed in. This gives drivers the ability to
defer starting accounting until after IO is issued (but possibily not
entirely due to bio splitting).

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Link: https://lore.kernel.org/r/20220128155841.39644-2-snitzer@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
include/linux/blkdev.h