From: Ming Lei <ming.lei@redhat.com>
To: Jens Axboe <axboe@kernel.dk>, linux-block@vger.kernel.org
Cc: Hannes Reinecke <hare@suse.de>, Yu Kuai <yukuai3@huawei.com>
Subject: Re: [PATCH V2 0/5] blk-mq: Replace tags->lock with SRCU for tag iterators
Date: Mon, 8 Sep 2025 09:28:59 +0800 [thread overview]
Message-ID: <aL4xW_wRG2MZFA3U@fedora> (raw)
In-Reply-To: <20250830021825.2859325-1-ming.lei@redhat.com>
On Sat, Aug 30, 2025 at 10:18:18AM +0800, Ming Lei wrote:
> Hello Jens,
>
> Replace the spinlock in blk_mq_find_and_get_req() with an SRCU read lock
> around the tag iterators.
>
> Avoids scsi_host_busy() lockup during scsi host blocked in case of big cpu
> cores & deep queue depth.
>
> Also the big tags lock isn't needed when reading disk sysfs attribute
> 'inflight' any more.
>
> Take the following approach:
>
> - clearing rq reference in tags->rqs[] and deferring freeing scheduler requests
> in SRCU callback
>
> - replace tags->lock with srcu read lock in tags iterator.
>
> V2:
> - rebase on for-6.18/block
> - add review tags
Hello Jens,
Ping...
Thanks,
Ming
next prev parent reply other threads:[~2025-09-08 1:29 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-30 2:18 [PATCH V2 0/5] blk-mq: Replace tags->lock with SRCU for tag iterators Ming Lei
2025-08-30 2:18 ` [PATCH V2 1/5] blk-mq: Move flush queue allocation into blk_mq_init_hctx() Ming Lei
2025-08-30 2:18 ` [PATCH V2 2/5] blk-mq: Pass tag_set to blk_mq_free_rq_map/tags Ming Lei
2025-08-30 2:18 ` [PATCH V2 3/5] blk-mq: Defer freeing of tags page_list to SRCU callback Ming Lei
2025-08-30 2:18 ` [PATCH V2 4/5] blk-mq: Defer freeing flush queue " Ming Lei
2025-08-30 2:18 ` [PATCH V2 5/5] blk-mq: Replace tags->lock with SRCU for tag iterators Ming Lei
2025-10-03 17:17 ` [PATCH V2 5/5] blk-mq: Replace tags->lock with SRCU for tag iterators - Rockchip UFS regression Sebastian Reichel
2025-10-04 14:42 ` Ming Lei
2025-10-06 18:02 ` Bart Van Assche
2025-10-06 23:03 ` Jens Axboe
2025-08-31 0:35 ` [PATCH V2 0/5] blk-mq: Replace tags->lock with SRCU for tag iterators Martin K. Petersen
2025-09-08 1:28 ` Ming Lei [this message]
2025-09-08 14:07 ` Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aL4xW_wRG2MZFA3U@fedora \
--to=ming.lei@redhat.com \
--cc=axboe@kernel.dk \
--cc=hare@suse.de \
--cc=linux-block@vger.kernel.org \
--cc=yukuai3@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox