X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=block%2Fbfq-wf2q.c;h=72adbbe975d5c7b281558870af6e212b27cd479d;hb=e7ad43c3eda6a1690c4c3c341f95dc1c6898da83;hp=63e0f12be7c98fe7770eb9f1e817f5319690c392;hpb=78e8696c234ab637c4dd516cabeac344d84ec10b;p=uclinux-h8%2Flinux.git diff --git a/block/bfq-wf2q.c b/block/bfq-wf2q.c index 63e0f12be7c9..72adbbe975d5 100644 --- a/block/bfq-wf2q.c +++ b/block/bfq-wf2q.c @@ -1154,15 +1154,14 @@ static void bfq_activate_requeue_entity(struct bfq_entity *entity, } /** - * __bfq_deactivate_entity - deactivate an entity from its service tree. - * @entity: the entity to deactivate. + * __bfq_deactivate_entity - update sched_data and service trees for + * entity, so as to represent entity as inactive + * @entity: the entity being deactivated. * @ins_into_idle_tree: if false, the entity will not be put into the * idle tree. * - * Deactivates an entity, independently of its previous state. Must - * be invoked only if entity is on a service tree. Extracts the entity - * from that tree, and if necessary and allowed, puts it into the idle - * tree. + * If necessary and allowed, puts entity into the idle tree. NOTE: + * entity may be on no tree if in service. */ bool __bfq_deactivate_entity(struct bfq_entity *entity, bool ins_into_idle_tree) {