Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deepin: only use BFQ as the elevator for single queue rotate devices
Why: bfq elevator shows high bandwidth in read/write than other in hdd.[1] 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. Answer: It is ok for: use this macro:blk_queue_flag_set(QUEUE_FLAG_NONROT for no rotate block device like ssd: blk_queue_flag_set(QUEUE_FLAG_NONROT device_add_disk-> elevator_init_mq-> elevator_get_default-> choose mq-deadline for rotate device like hdd: device_add_disk-> elevator_init_mq-> elevator_get_default-> choose bfq Link:https://ieeexplore.ieee.org/document/7469567 [1] Signed-off-by: Wentao Guan <[email protected]>
- Loading branch information