The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 0/3] blk-ioc: convert ioc_lookup_icq() to lockless version
@ 2025-07-25  7:05 Yu Kuai
  2025-07-25  7:05 ` [PATCH 1/3] blk-ioc: add a new helper ioc_lookup_icq_rcu() Yu Kuai
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Yu Kuai @ 2025-07-25  7:05 UTC (permalink / raw)
  To: jack, dlemoal, axboe
  Cc: linux-block, linux-kernel, yukuai3, yukuai1, yi.zhang, yangerkun,
	johnny.chenyi

From: Yu Kuai <yukuai3@huawei.com>

Currently issue io can grab queue_lock three times from bfq_bio_merge(),
bfq_limit_depth() and bfq_prepare_request(), the queue_lock is not
necessary if icq is already created because both queue and ioc can't be
freed before io issuing is done.

This set first add a lockless helper ioc_lookup_icq_rcu() and then
covert to use the new helper.

Noted this is also a prep set to support request batch dispatching[1].

1. https://lore.kernel.org/all/20250722072431.610354-1-yukuai1@huaweicloud.com/

Yu Kuai (3):
  blk-ioc: add a new helper ioc_lookup_icq_rcu()
  block, bfq: convert to use ioc_lookup_icq_rcu()
  blk-ioc: convert to use ioc_lookup_icq_rcu()

 block/bfq-iosched.c | 23 ++++++-----------------
 block/blk-ioc.c     | 46 ++++++++++++++++++++++-----------------------
 block/blk.h         |  2 +-
 3 files changed, 29 insertions(+), 42 deletions(-)

-- 
2.39.2


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

end of thread, other threads:[~2025-07-25 17:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-25  7:05 [PATCH 0/3] blk-ioc: convert ioc_lookup_icq() to lockless version Yu Kuai
2025-07-25  7:05 ` [PATCH 1/3] blk-ioc: add a new helper ioc_lookup_icq_rcu() Yu Kuai
2025-07-25 10:21   ` Damien Le Moal
2025-07-25 12:03     ` Jan Kara
2025-07-25 17:46       ` Yu Kuai
2025-07-25  7:05 ` [PATCH 2/3] block, bfq: convert to use ioc_lookup_icq_rcu() Yu Kuai
2025-07-25  7:05 ` [PATCH 3/3] blk-ioc: " Yu Kuai

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