Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40b23718 authored by Pradeep P V K's avatar Pradeep P V K
Browse files

block: Enable BFQ IO-Scheduler as default



Enable BFQ IO-Scheduler as a default scheduler
for systems adapting to block multiqueue design.

Change-Id: I36f0347763beea16ae6f484001d8cad43ccad042
Signed-off-by: default avatarPradeep P V K <ppvk@codeaurora.org>
parent 8f2515d9
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -989,11 +989,15 @@ int elevator_init_mq(struct request_queue *q)
	mutex_lock(&q->sysfs_lock);
	if (unlikely(q->elevator))
		goto out_unlock;

	if (IS_ENABLED(CONFIG_IOSCHED_BFQ)) {
		e = elevator_get(q, "bfq", false);
		if (!e)
			goto out_unlock;
	} else {
		e = elevator_get(q, "mq-deadline", false);
		if (!e)
			goto out_unlock;

	}
	err = blk_mq_init_sched(q, e);
	if (err)
		elevator_put(e);