Merge branch 'for-linus' of git://git.kernel.dk/linux-block
[cascardo/linux.git] / block / blk-cgroup.c
index 5aa9b8b..069bc20 100644 (file)
@@ -185,7 +185,7 @@ static struct blkcg_gq *blkg_create(struct blkcg *blkcg,
        lockdep_assert_held(q->queue_lock);
 
        /* blkg holds a reference to blkcg */
-       if (!css_tryget(&blkcg->css)) {
+       if (!css_tryget_online(&blkcg->css)) {
                ret = -EINVAL;
                goto err_free_blkg;
        }