X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=block%2Fbfq-cgroup.c;h=85b8e1c3a762d462936e3db1699d236e75087982;hb=refs%2Fheads%2Fsandbox%2Flstelmach%2Ftizen-visionfive2;hp=e2f14508f2d6eff98274448b68b8139a80872098;hpb=0f4022a490ad68846062186f481defd53be69743;p=platform%2Fkernel%2Flinux-starfive.git diff --git a/block/bfq-cgroup.c b/block/bfq-cgroup.c index e2f1450..85b8e1c 100644 --- a/block/bfq-cgroup.c +++ b/block/bfq-cgroup.c @@ -666,6 +666,12 @@ void bfq_bfqq_move(struct bfq_data *bfqd, struct bfq_queue *bfqq, bfq_put_idle_entity(bfq_entity_service_tree(entity), entity); bfqg_and_blkg_put(bfqq_group(bfqq)); + if (entity->parent && + entity->parent->last_bfqq_created == bfqq) + entity->parent->last_bfqq_created = NULL; + else if (bfqd->last_bfqq_created == bfqq) + bfqd->last_bfqq_created = NULL; + entity->parent = bfqg->my_entity; entity->sched_data = &bfqg->sched_data; /* pin down bfqg and its associated blkg */