Re: [patch v2 2/7] blk-mq-sched: unify elevators checking for async requests

From: Bart Van Assche
Date: Thu Oct 09 2025 - 13:03:18 EST


On 10/9/25 12:46 AM, Yu Kuai wrote:
+static inline bool blk_mq_sched_sync_request(blk_opf_t opf)
+{
+ return op_is_sync(opf) && !op_is_write(opf);
+}

The "sched" part in the function name suggests that this function
schedules something while it only tests something. Maybe
"blk_mq_is_sync_read()" is a better function name?

Thanks,

Bart.