Skip to content

Commit

Permalink
deepin: only use BFQ as the elevator for single queue hdd devices
Browse files Browse the repository at this point in the history
Question:
It is correct time to get the flag?

If we can get the flag,so we can only use BFQ elevator for hdd.
or it is same as before.
  • Loading branch information
opsiff authored Sep 16, 2024
1 parent 3f4d760 commit ca29f8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion block/elevator.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,8 @@ static struct elevator_type *elevator_get_default(struct request_queue *q)
!blk_mq_is_shared_tags(q->tag_set->flags))
return NULL;
#if defined(CONFIG_IOSCHED_BFQ)
return elevator_find_get(q, "bfq");
if (!blk_queue_nonrot(q))
return elevator_find_get(q, "bfq");
#else
return elevator_find_get(q, "mq-deadline");
#endif
Expand Down

0 comments on commit ca29f8d

Please sign in to comment.