Hi, 在 2025/09/08 14:15, Yu Kuai 写道:
@@ -90,16 +91,24 @@ queue_requests_store(struct gendisk *disk, const char *page, size_t count) goto unlock; }+ if (q->elevator && nr > q->elevator->et->nr_requests) {
While rebasing v2, I found that I should also add non-shared checking here, because from blk_mq_alloc_shced_tags(), et->nr_requests is not set to MAX_SCHED_RQ, and we don't want to allocate memory for shared case. I'll fix this as well in v2. Thanks, Kuai