diff options
author | Tejun Heo <tj@kernel.org> | 2012-04-01 14:38:43 -0700 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2012-04-01 14:38:43 -0700 |
commit | 60c2bc2d5a12369deef395cda41638d7e6b6bf19 (patch) | |
tree | 67fb6ace87a930215f800f0a96bb33f9773231c7 /drivers/pnp | |
parent | 44ea53de46a8b01a65ae6217f47e00b516725190 (diff) | |
download | linux-3.10-60c2bc2d5a12369deef395cda41638d7e6b6bf19.tar.gz linux-3.10-60c2bc2d5a12369deef395cda41638d7e6b6bf19.tar.bz2 linux-3.10-60c2bc2d5a12369deef395cda41638d7e6b6bf19.zip |
blkcg: move conf/stat file handling code to policies
blkcg conf/stat handling is convoluted in that details which belong to
specific policy implementations are all out in blkcg core and then
policies hook into core layer to access and manipulate confs and
stats. This sadly achieves both inflexibility (confs/stats can't be
modified without messing with blkcg core) and complexity (all the
call-ins and call-backs).
The previous patches restructured conf and stat handling code such
that they can be separated out. This patch relocates the file
handling part. All conf/stat file handling code which belongs to
BLKIO_POLICY_PROP is moved to cfq-iosched.c and all
BKLIO_POLICY_THROTL code to blk-throtl.c.
The move is verbatim except for blkio_update_group_{weight|bps|iops}()
callbacks which relays conf changes to policies. The configuration
settings are handled in policies themselves so the relaying isn't
necessary. Conf setting functions are modified to directly call
per-policy update functions and the relaying mechanism is dropped.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/pnp')
0 files changed, 0 insertions, 0 deletions