diff options
author | Guoqing Jiang <jgq516@gmail.com> | 2021-05-25 17:46:21 +0800 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2021-06-14 22:32:07 -0700 |
commit | a0159832e51e3af03b89ecc5d6b9db451e529b5f (patch) | |
tree | c73d72e9bbb95ec4f2253799e37c26a284469dbe /drivers/md/raid1.h | |
parent | 9b8ae7b938235229ccb112c4e887ff1bcc232836 (diff) | |
download | linux-a0159832e51e3af03b89ecc5d6b9db451e529b5f.tar.bz2 |
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.h | 1 |
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 |