blkcg: don't use blkg->plid in stat related functions
blkg is scheduled to be unified for all policies and thus there won't be one-to-one mapping from blkg to policy. Update stat related functions to take explicit @pol or @plid arguments and not use blkg->plid. This is painful for now but most of specific stat interface functions will be replaced with a handful of generic helpers. Signed-off-by:Tejun Heo <tj@kernel.org> Cc: Vivek Goyal <vgoyal@redhat.com> Signed-off-by:
Jens Axboe <axboe@kernel.dk>
Showing
- block/blk-cgroup.c 85 additions, 65 deletionsblock/blk-cgroup.c
- block/blk-cgroup.h 50 additions, 30 deletionsblock/blk-cgroup.h
- block/blk-throttle.c 3 additions, 1 deletionblock/blk-throttle.c
- block/cfq-iosched.c 28 additions, 16 deletionsblock/cfq-iosched.c
- block/cfq.h 58 additions, 38 deletionsblock/cfq.h
Please register or sign in to comment