summaryrefslogtreecommitdiffstats
path: root/block/cfq-iosched.c
diff options
context:
space:
mode:
authorDivyesh Shah <dpshah@google.com>2010-04-16 08:10:51 +0200
committerJens Axboe <jens.axboe@oracle.com>2010-04-16 08:10:51 +0200
commit8d2a91f8960b230b8bbcc4d97ed2015f5271c87d (patch)
tree54b742bd0ce37c1ec227178d23d7da347993a6b5 /block/cfq-iosched.c
parentb6ac23af2c66e114d3a87ef28d56f1ceec283007 (diff)
downloadop-kernel-dev-8d2a91f8960b230b8bbcc4d97ed2015f5271c87d.zip
op-kernel-dev-8d2a91f8960b230b8bbcc4d97ed2015f5271c87d.tar.gz
blkio: Initialize blkg->stats_lock for the root cfqg too
This fixes the lockdep warning reported by Gui Jianfeng. Signed-off-by: Divyesh Shah <dpshah@google.com> Reviewed-by: Gui Jianfeng <guijianfeng@cn.fujitsu.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block/cfq-iosched.c')
-rw-r--r--block/cfq-iosched.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
index 0177109..62defd0 100644
--- a/block/cfq-iosched.c
+++ b/block/cfq-iosched.c
@@ -961,7 +961,6 @@ cfq_find_alloc_cfqg(struct cfq_data *cfqd, struct cgroup *cgroup, int create)
for_each_cfqg_st(cfqg, i, j, st)
*st = CFQ_RB_ROOT;
RB_CLEAR_NODE(&cfqg->rb_node);
- blkio_group_init(&cfqg->blkg);
/*
* Take the initial reference that will be released on destroy
OpenPOWER on IntegriCloud