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ý <[email protected]> Acked-by: Jens Axboe <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent 012c419 commit 77bbb25

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)