summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorMichal Koutný <mkoutny@suse.com>2025-03-11 13:36:20 +0100
committerTejun Heo <tj@kernel.org>2025-03-11 09:22:54 -1000
commit77bbb259db53ab5f0c971cf0180c28c897a06b9f (patch)
tree992bd27fdebfae4f712e3d83ef9e774c3b0c7ad9 /block
parent012c419f8d248fc92915a6d0998802ccd15cded6 (diff)
cgroup/blkio: Add deprecation messages to reset_stats
It is difficult to sync with stat updaters, stats are (should be) monotonic so users can calculate differences from a reference. Signed-off-by: Michal Koutný <mkoutny@suse.com> Acked-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'block')
-rw-r--r--block/blk-cgroup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c
index 45a395862fbc..b3e5184b10d5 100644
--- a/block/blk-cgroup.c
+++ b/block/blk-cgroup.c
@@ -659,6 +659,7 @@ static int blkcg_reset_stats(struct cgroup_subsys_state *css,
struct blkcg_gq *blkg;
int i;
+ pr_info_once("blkio.%s is deprecated\n", cftype->name);
mutex_lock(&blkcg_pol_mutex);
spin_lock_irq(&blkcg->lock);