md/raid10: enable io accounting
authorGuoqing Jiang <jgq516@gmail.com>
Tue, 25 May 2021 09:46:22 +0000 (17:46 +0800)
committerSong Liu <song@kernel.org>
Tue, 15 Jun 2021 05:32:07 +0000 (22:32 -0700)
commit528bc2cf2fccef2c2c17263f9932094bf81fee5a
treee0e58a2b431cf7d8c4590598ae400632a60520e7
parenta0159832e51e3af03b89ecc5d6b9db451e529b5f
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>
drivers/md/raid10.c
drivers/md/raid10.h