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

From: Yu Kuai
Date: Thu Oct 09 2025 - 22:01:49 EST


Hi,

在 2025/10/10 1:02, Bart Van Assche 写道:
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?

This is just a prefix to indicate that this helper is user for scheduler,
just like lots of other helpers in blk-mq-sched.h

I'll prefer to keep this name if you don't mind :)

Thanks,
Kuai


Thanks,

Bart.