[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <f7d4f3ec-1f10-d9a0-0d4a-8d5472e9ff3a@huaweicloud.com>
Date: Wed, 10 Sep 2025 15:46:28 +0800
From: Yu Kuai <yukuai1@...weicloud.com>
To: Yu Kuai <yukuai1@...weicloud.com>, nilay@...ux.ibm.com,
ming.lei@...hat.com, axboe@...nel.dk
Cc: linux-block@...r.kernel.org, linux-kernel@...r.kernel.org,
yi.zhang@...wei.com, yangerkun@...wei.com, johnny.chenyi@...wei.com,
"yukuai (C)" <yukuai3@...wei.com>
Subject: Re: [PATCH for-6.18/block 08/10] blk-mq: fix potential deadlock while
nr_requests grown
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
Powered by blists - more mailing lists