Skip to content
Commit 3607849d authored by Wolfgang Bumiller's avatar Wolfgang Bumiller Committed by Jens Axboe
Browse files

blk-cgroup: always terminate io.stat lines



With the removal of seq_get_buf in blkcg_print_one_stat, we
cannot make adding the newline conditional on there being
relevant stats because the name was already written out
unconditionally.
Otherwise we may end up with multiple device names in one
line which is confusing and doesn't follow the nested-keyed
file format.

Signed-off-by: default avatarWolfgang Bumiller <w.bumiller@proxmox.com>
Fixes: 252c651a ("blk-cgroup: stop using seq_get_buf")
Acked-by: default avatarTejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20220111083159.42340-1-w.bumiller@proxmox.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent ddc25c86
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment