diff options
author | Vivek Goyal <vgoyal@redhat.com> | 2009-12-03 12:59:52 -0500 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-12-03 19:28:53 +0100 |
commit | f8d461d692c341add957fb973fb5ee1f62039dc7 (patch) | |
tree | 42c6cf987aa4d38b271a60d2b62e92c6c748cd69 /block/cfq-iosched.c | |
parent | 24610333d578478d354144ab4709a203684afc5f (diff) | |
download | op-kernel-dev-f8d461d692c341add957fb973fb5ee1f62039dc7.zip op-kernel-dev-f8d461d692c341add957fb973fb5ee1f62039dc7.tar.gz |
blkio: Propagate cgroup weight updation to cfq groups
o Propagate blkio cgroup weight updation to associated cfq groups.
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block/cfq-iosched.c')
-rw-r--r-- | block/cfq-iosched.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 3d99e45..f736462 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c @@ -922,6 +922,12 @@ static inline struct cfq_group *cfqg_of_blkg(struct blkio_group *blkg) return NULL; } +void +cfq_update_blkio_group_weight(struct blkio_group *blkg, unsigned int weight) +{ + cfqg_of_blkg(blkg)->weight = weight; +} + static struct cfq_group * cfq_find_alloc_cfqg(struct cfq_data *cfqd, struct cgroup *cgroup, int create) { |