]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
md/raid1: enable io accounting
authorGuoqing Jiang <jgq516@gmail.com>
Tue, 25 May 2021 09:46:21 +0000 (17:46 +0800)
committerSong Liu <song@kernel.org>
Tue, 15 Jun 2021 05:32:07 +0000 (22:32 -0700)
commita0159832e51e3af03b89ecc5d6b9db451e529b5f
treec73d72e9bbb95ec4f2253799e37c26a284469dbe
parent9b8ae7b938235229ccb112c4e887ff1bcc232836
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>
drivers/md/raid1.c
drivers/md/raid1.h