From: Michal Koutný Date: Tue, 11 Mar 2025 12:36:20 +0000 (+0100) Subject: cgroup/blkio: Add deprecation messages to reset_stats X-Git-Tag: v6.15-rc1~228^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=77bbb259db53ab5f0c971cf0180c28c897a06b9f;p=thirdparty%2Flinux.git 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ý Acked-by: Jens Axboe Signed-off-by: Tejun Heo --- diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c index 45a395862fbc8..b3e5184b10d5f 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);