Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deepin: Use BFQ as the elevator for SQ rotate devices #421

Open
wants to merge 2 commits into
base: linux-6.6.y
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion block/elevator.c
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,13 @@ static struct elevator_type *elevator_get_default(struct request_queue *q)
if (q->nr_hw_queues != 1 &&
!blk_mq_is_shared_tags(q->tag_set->flags))
return NULL;

#if defined(CONFIG_IOSCHED_BFQ)
if (!blk_queue_nonrot(q))
return elevator_find_get(q, "bfq");
return elevator_find_get(q, "mq-deadline");
#else
return elevator_find_get(q, "mq-deadline");
#endif
}

/*
Expand Down
Loading