]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
cgroup/blkio: Add deprecation messages to reset_stats
authorMichal Koutný <mkoutny@suse.com>
Tue, 11 Mar 2025 12:36:20 +0000 (13:36 +0100)
committerTejun Heo <tj@kernel.org>
Tue, 11 Mar 2025 19:22:54 +0000 (09:22 -1000)
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>
block/blk-cgroup.c

index 45a395862fbc88f448fe281eeac620710bc1587d..b3e5184b10d5ff741feaef2f90f0281872be48de 100644 (file)
@@ -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);