blkcg: small fix on comment in blkcg_init_queue
authorJiang Biao <jiang.biao2@zte.com.cn>
Thu, 19 Apr 2018 04:04:26 +0000 (12:04 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 19 Apr 2018 14:51:57 +0000 (08:51 -0600)
The comment before blkg_create() in blkcg_init_queue() was moved
from blkcg_activate_policy() by commit ec13b1d6f0a0457312e615, 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>
block/blk-cgroup.c

index 21bc449d01c07bba245f796d1f6dada0a57db328..79da2a723b68fe4f5196048f031736fc2c5ff95f 100644 (file)
@@ -1177,11 +1177,7 @@ int blkcg_init_queue(struct request_queue *q)
 
        preloaded = !radix_tree_preload(GFP_KERNEL);
 
-       /*
-        * Make sure the root blkg exists and count the existing blkgs.  As
-        * @q is bypassing at this point, blkg_lookup_create() can't be
-        * used.  Open code insertion.
-        */
+       /* Make sure the root blkg exists. */
        rcu_read_lock();
        spin_lock_irq(q->queue_lock);
        blkg = blkg_create(&blkcg_root, q, new_blkg);