]> git.baikalelectronics.ru Git - 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)
committerMike Snitzer <snitzer@kernel.org>
Thu, 14 Jul 2022 19:53:25 +0000 (15:53 -0400)
commit887f0e707156c3ddfc1205f0c645d5bcbaf1260d
treee24eccff92e8ddd05e9e9ae169bc53afbc22ed77
parent9f59729345c89a60e46aea61e0f709f00d256dc2
dm writecache: count number of blocks written, not number of write bios

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: 2f3825b88d33 ("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>
Documentation/admin-guide/device-mapper/writecache.rst
drivers/md/dm-writecache.c