mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] blk-mq: fix update nr_requests regressions
@ 2025-08-21  6:06 Yu Kuai
  2025-08-21  6:06 ` [PATCH v3 1/2] blk-mq: fix elevator depth_updated method Yu Kuai
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Yu Kuai @ 2025-08-21  6:06 UTC (permalink / raw)
  To: yukuai3, axboe, bvanassche, ming.lei, nilay, hare
  Cc: linux-block, linux-kernel, yukuai1, yi.zhang, yangerkun, johnny.chenyi

From: Yu Kuai <yukuai3@huawei.com>

Changes in v3:
 - call depth_updated() directly in init_sched() method in patch 1;
 - fix typos in patch 2;
 - add review for patch 2;
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   | 22 +++++-----------------
 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 | 19 +++++++++----------
 block/mq-deadline.c   | 16 +++-------------
 7 files changed, 42 insertions(+), 52 deletions(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2025-09-05 19:54 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-21  6:06 [PATCH v3 0/2] blk-mq: fix update nr_requests regressions Yu Kuai
2025-08-21  6:06 ` [PATCH v3 1/2] blk-mq: fix elevator depth_updated method Yu Kuai
2025-08-21 12:21   ` Nilay Shroff
2025-08-21 14:57   ` Li Nan
2025-08-22  6:00   ` Hannes Reinecke
2025-08-21  6:06 ` [PATCH v3 2/2] blk-mq: fix blk_mq_tags double free while nr_requests grown Yu Kuai
2025-08-21 14:57   ` Li Nan
2025-08-22  6:02   ` Hannes Reinecke
2025-08-26  6:27 ` [PATCH v3 0/2] blk-mq: fix update nr_requests regressions Yu Kuai
2025-09-05  7:20   ` Yu Kuai
2025-09-05 19:52     ` Jens Axboe
2025-09-05 19:54 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®