]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
dm writecache: count number of blocks written, not number of write bios
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 11 Jul 2022 20:31:26 +0000 (16:31 -0400)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 17 Oct 2022 09:56:03 +0000 (11:56 +0200)
commit5d72bcb254beee35c993f6621b08e3da5b54cce0
treee061a4566df20f9f632ff0399138be69cf84d47b
parent176d49a210ed0b27ba6b54b1aa7c9db24a186b98
dm writecache: count number of blocks written, not number of write bios

BugLink: https://bugs.launchpad.net/bugs/1990162
[ Upstream commit b2676e1482af89714af6988ce5d31a84692e2530 ]

Change dm-writecache, so that it counts the number of blocks written
instead of the number of write bios. Bios can be split and requeued
using the dm_accept_partial_bio function, so counting bios caused
inaccurate results.

Fixes: e3a35d03407c ("dm writecache: add event counters")
Reported-by: Yu Kuai <yukuai1@huaweicloud.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Documentation/admin-guide/device-mapper/writecache.rst
drivers/md/dm-writecache.c