Re: [PATCH v3] blk-throttle: Fix io statistics for cgroup v1

From: Jens Axboe
Date: Sun Jun 25 2023 - 10:01:33 EST



On Mon, 08 May 2023 01:06:31 +0800, Jinke Han wrote:
> After commit f382fb0bcef4 ("block: remove legacy IO schedulers"),
> blkio.throttle.io_serviced and blkio.throttle.io_service_bytes become
> the only stable io stats interface of cgroup v1, and these statistics
> are done in the blk-throttle code. But the current code only counts the
> bios that are actually throttled. When the user does not add the throttle
> limit, the io stats for cgroup v1 has nothing. I fix it according to the
> statistical method of v2, and made it count all ios accurately.
>
> [...]

Applied, thanks!

[1/1] blk-throttle: Fix io statistics for cgroup v1
commit: ad7c3b41e86b59943a903d23c7b037d820e6270c

Best regards,
--
Jens Axboe