diff options
author | Guoqing Jiang <jgq516@gmail.com> | 2021-05-25 17:46:22 +0800 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2021-06-14 22:32:07 -0700 |
commit | 528bc2cf2fccef2c2c17263f9932094bf81fee5a (patch) | |
tree | e0e58a2b431cf7d8c4590598ae400632a60520e7 /drivers/md/raid10.h | |
parent | a0159832e51e3af03b89ecc5d6b9db451e529b5f (diff) |
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.h | 1 |
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 |