]> git.baikalelectronics.ru Git - kernel.git/commit
blk-cgroup: always terminate io.stat lines
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 11 Jan 2022 08:31:59 +0000 (09:31 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 17 May 2022 12:11:17 +0000 (06:11 -0600)
commit44b09ebd113a4119fa0851c31aae1e055ca369b1
tree1f1b5e328d61da1bf85e456816994cada497c245
parentb847d03873f74394a136c2b471b3e19e6b70e3f4
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: Wolfgang Bumiller <w.bumiller@proxmox.com>
Fixes: 772944498364 ("blk-cgroup: stop using seq_get_buf")
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20220111083159.42340-1-w.bumiller@proxmox.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c
block/blk-cgroup.h
block/blk-iocost.c
block/blk-iolatency.c