mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2025-04-19 20:58:31 +09:00
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>
This commit is contained in:
parent
012c419f8d
commit
77bbb259db
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user