Skip to content

Commit 42b1bd3

Browse files
koct9iaxboe
authored andcommitted
block/bfq: fix ifdef for CONFIG_BFQ_GROUP_IOSCHED=y
Replace BFQ_GROUP_IOSCHED_ENABLED with CONFIG_BFQ_GROUP_IOSCHED. Code under these ifdefs never worked, something might be broken. Fixes: 0471559 ("block, bfq: add/remove entity weights correctly") Fixes: 73d5811 ("block, bfq: consider also ioprio classes in symmetry detection") Reviewed-by: Holger Hoffstätte <holger@applied-asynchrony.com> Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 79a3aaa commit 42b1bd3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

block/bfq-iosched.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ static bool bfq_symmetric_scenario(struct bfq_data *bfqd)
674674
* at least two nodes.
675675
*/
676676
return !(varied_queue_weights || multiple_classes_busy
677-
#ifdef BFQ_GROUP_IOSCHED_ENABLED
677+
#ifdef CONFIG_BFQ_GROUP_IOSCHED
678678
|| bfqd->num_groups_with_pending_reqs > 0
679679
#endif
680680
);

block/bfq-wf2q.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ static void __bfq_activate_entity(struct bfq_entity *entity,
10121012
entity->on_st = true;
10131013
}
10141014

1015-
#ifdef BFQ_GROUP_IOSCHED_ENABLED
1015+
#ifdef CONFIG_BFQ_GROUP_IOSCHED
10161016
if (!bfq_entity_to_bfqq(entity)) { /* bfq_group */
10171017
struct bfq_group *bfqg =
10181018
container_of(entity, struct bfq_group, entity);

0 commit comments

Comments
 (0)