summaryrefslogtreecommitdiff
path: root/drivers/md/raid10.h
diff options
context:
space:
mode:
authorGuoqing Jiang <jgq516@gmail.com>2021-05-25 12:46:22 +0300
committerSong Liu <song@kernel.org>2021-06-15 08:32:07 +0300
commit528bc2cf2fccef2c2c17263f9932094bf81fee5a (patch)
treee0e58a2b431cf7d8c4590598ae400632a60520e7 /drivers/md/raid10.h
parenta0159832e51e3af03b89ecc5d6b9db451e529b5f (diff)
downloadlinux-528bc2cf2fccef2c2c17263f9932094bf81fee5a.tar.xz
md/raid10: enable io accounting
For raid10, we record the start time between split bio and clone bio, and finish the accounting in the final endio. Also introduce start_time in r10bio accordingly. Signed-off-by: Guoqing Jiang <jiangguoqing@kylinos.cn> Signed-off-by: Song Liu <song@kernel.org>
Diffstat (limited to 'drivers/md/raid10.h')
-rw-r--r--drivers/md/raid10.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/raid10.h b/drivers/md/raid10.h
index 1461fd55311b..c34bb196790e 100644
--- a/drivers/md/raid10.h
+++ b/drivers/md/raid10.h
@@ -124,6 +124,7 @@ struct r10bio {
sector_t sector; /* virtual sector number */
int sectors;
unsigned long state;
+ unsigned long start_time;
struct mddev *mddev;
/*
* original bio going to /dev/mdx