[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250819012917.523272-1-yukuai1@huaweicloud.com>
Date: Tue, 19 Aug 2025 09:29:15 +0800
From: Yu Kuai <yukuai1@...weicloud.com>
To: yukuai3@...wei.com,
axboe@...nel.dk,
bvanassche@....org,
ming.lei@...hat.com,
hare@...e.de,
nilay@...ux.ibm.com
Cc: linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org,
yukuai1@...weicloud.com,
yi.zhang@...wei.com,
yangerkun@...wei.com,
johnny.chenyi@...wei.com
Subject: [PATCH v2 0/2] blk-mq: fix update nr_requests regressions
From: Yu Kuai <yukuai3@...wei.com>
Changes in v2:
- instead of refactor and cleanups and fix updating nr_requests
thoroughly, fix the regression in patch 2 the easy way, and dealy
refactor and cleanups to next merge window.
patch 1 fix regression that elevator async_depth is not updated correctly
if nr_requests changes, first from error path and then for mq-deadline,
and recently for bfq and kyber.
patch 2 fix regression that if nr_requests grow, kernel will panic due
to tags double free.
Yu Kuai (2):
blk-mq: fix elevator depth_updated method
blk-mq: fix blk_mq_tags double free while nr_requests grown
block/bfq-iosched.c | 21 ++++-----------------
block/blk-mq-sched.c | 3 +++
block/blk-mq-sched.h | 11 +++++++++++
block/blk-mq-tag.c | 1 +
block/blk-mq.c | 23 ++++++++++++-----------
block/elevator.h | 2 +-
block/kyber-iosched.c | 10 ++++------
block/mq-deadline.c | 15 ++-------------
8 files changed, 38 insertions(+), 48 deletions(-)
--
2.39.2
Powered by blists - more mailing lists