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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Feb 2022 16:27:03 +0000 (17:27 +0100)
commit4cca3e3ef21da10eaa23410ce8ee953fa66c1f8b
tree16258f6a9514a753d1f8891d8f5d888455d22a3c
parent86125006d88dae6945d557059336319b76f2287c
block: add bio_start_io_acct_time() to control start_time

commit e45c47d1f94e0cc7b6b079fdb4bcce2995e2adc4 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
block/blk-core.c
include/linux/blkdev.h