Re: [PATCH v2 3/5] block, bfq: switch to use elevator lock

From: Bart Van Assche
Date: Wed Jul 30 2025 - 13:25:11 EST


On 7/30/25 1:22 AM, Yu Kuai wrote:
static sector_t bfq_io_struct_pos(void *io_struct, bool request)
@@ -5301,8 +5301,6 @@ static struct request *bfq_dispatch_request(struct blk_mq_hw_ctx *hctx)
struct bfq_queue *in_serv_queue;
bool waiting_rq, idle_timer_disabled = false;
- spin_lock_irq(&bfqd->lock);
-
in_serv_queue = bfqd->in_service_queue;
waiting_rq = in_serv_queue && bfq_bfqq_wait_request(in_serv_queue);

Please restrict this patch to changing &bfqd->lock into bfqd->lock only.

Thanks,

Bart.