cfq-iosched: Fix wrong children_weight calculation
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / block / blk-throttle.c
index a9664fa0b6097ace6a48d48e0992a6d83ed32a9d..31146225f3d078fb5326e30195a0fa138f1f3e5a 100644 (file)
@@ -302,7 +302,7 @@ static struct throtl_grp *throtl_lookup_create_tg(struct throtl_data *td,
                /* if %NULL and @q is alive, fall back to root_tg */
                if (!IS_ERR(blkg))
                        tg = blkg_to_tg(blkg);
-               else if (!blk_queue_dead(q))
+               else if (!blk_queue_dying(q))
                        tg = td_root_tg(td);
        }