Skip to content

Commit bea5488

Browse files
Jiang Biaoaxboe
authored andcommitted
blkcg: small fix on comment in blkcg_init_queue
The comment before blkg_create() in blkcg_init_queue() was moved from blkcg_activate_policy() by commit ec13b1d, but it does not suit for the new context. Signed-off-by: Jiang Biao <jiang.biao2@zte.com.cn> Signed-off-by: Wen Yang <wen.yang99@zte.com.cn> CC: Tejun Heo <tj@kernel.org> CC: Jens Axboe <axboe@kernel.dk> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 946b81d commit bea5488

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

block/blk-cgroup.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,11 +1177,7 @@ int blkcg_init_queue(struct request_queue *q)
11771177

11781178
preloaded = !radix_tree_preload(GFP_KERNEL);
11791179

1180-
/*
1181-
* Make sure the root blkg exists and count the existing blkgs. As
1182-
* @q is bypassing at this point, blkg_lookup_create() can't be
1183-
* used. Open code insertion.
1184-
*/
1180+
/* Make sure the root blkg exists. */
11851181
rcu_read_lock();
11861182
spin_lock_irq(q->queue_lock);
11871183
blkg = blkg_create(&blkcg_root, q, new_blkg);

0 commit comments

Comments
 (0)