]> 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)
commite45c47d1f94e0cc7b6b079fdb4bcce2995e2adc4
tree400e9f98f15e02b8dd587ace3c13a6e0ae37f3a2
parent10825410b956dc1ed8c5fbc8bbedaffdadde7f20
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