Skip to content

Commit 77bbb25

Browse files
Werkovhtejun
authored andcommitted
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>
1 parent 012c419 commit 77bbb25

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

block/blk-cgroup.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,7 @@ static int blkcg_reset_stats(struct cgroup_subsys_state *css,
659659
struct blkcg_gq *blkg;
660660
int i;
661661

662+
pr_info_once("blkio.%s is deprecated\n", cftype->name);
662663
mutex_lock(&blkcg_pol_mutex);
663664
spin_lock_irq(&blkcg->lock);
664665

0 commit comments

Comments
 (0)