summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2022-01-28 10:58:39 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-02-01 17:27:03 +0100
commit4cca3e3ef21da10eaa23410ce8ee953fa66c1f8b (patch)
tree16258f6a9514a753d1f8891d8f5d888455d22a3c /include
parent86125006d88dae6945d557059336319b76f2287c (diff)
downloadlinux-4cca3e3ef21da10eaa23410ce8ee953fa66c1f8b.tar.gz
linux-4cca3e3ef21da10eaa23410ce8ee953fa66c1f8b.tar.bz2
linux-4cca3e3ef21da10eaa23410ce8ee953fa66c1f8b.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/blkdev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 0a9fdcbbab83..be8e7a55d803 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -1947,6 +1947,7 @@ unsigned long disk_start_io_acct(struct gendisk *disk, unsigned int sectors,
void disk_end_io_acct(struct gendisk *disk, unsigned int op,
unsigned long start_time);
+void bio_start_io_acct_time(struct bio *bio, unsigned long start_time);
unsigned long bio_start_io_acct(struct bio *bio);
void bio_end_io_acct_remapped(struct bio *bio, unsigned long start_time,
struct block_device *orig_bdev);