aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.h
diff options
context:
space:
mode:
authorGuoqing Jiang <jgq516@gmail.com>2021-05-25 17:46:21 +0800
committerSong Liu <song@kernel.org>2021-06-14 22:32:07 -0700
commita0159832e51e3af03b89ecc5d6b9db451e529b5f (patch)
treec73d72e9bbb95ec4f2253799e37c26a284469dbe /drivers/md/raid1.h
parentmd/raid1: rename print_msg with r1bio_existed (diff)
downloadlinux-dev-a0159832e51e3af03b89ecc5d6b9db451e529b5f.tar.xz
linux-dev-a0159832e51e3af03b89ecc5d6b9db451e529b5f.zip
md/raid1: enable io accounting
For raid1, we record the start time between split bio and clone bio, and finish the accounting in the final endio. Also introduce start_time in r1bio accordingly. Signed-off-by: Guoqing Jiang <jiangguoqing@kylinos.cn> Signed-off-by: Song Liu <song@kernel.org>
Diffstat (limited to 'drivers/md/raid1.h')
-rw-r--r--drivers/md/raid1.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/raid1.h b/drivers/md/raid1.h
index b7eb09e8c025..ccf10e59b116 100644
--- a/drivers/md/raid1.h
+++ b/drivers/md/raid1.h
@@ -158,6 +158,7 @@ struct r1bio {
sector_t sector;
int sectors;
unsigned long state;
+ unsigned long start_time;
struct mddev *mddev;
/*
* original bio going to /dev/mdx