From: Sasha Levin <sashal@kernel.org>
To: stable@vger.kernel.org
Cc: Sasha Levin <sashal@kernel.org>,
Bart Van Assche <bvanassche@acm.org>,
Jens Axboe <axboe@kernel.dk>, Nilay Shroff <nilay@linux.ibm.com>,
Christoph Hellwig <hch@lst.de>, Ming Lei <ming.lei@redhat.com>,
linux-block@vger.kernel.org,
Dickson Wu via B4 Relay
<devnull+dickson.wu.certik.com@kernel.org>,
Dickson Wu <dickson.wu@certik.com>
Subject: Re: [PATCH 6.12.y v2] block: Remove queue freezing from several sysfs store callbacks
Date: Wed, 2 Dec 2026 08:48:31 -0500 [thread overview]
Message-ID: <2026-12-01-1-daily-reply-0018@kernel.org> (raw)
In-Reply-To: <20261130-blk-612v2-v2-1-135ec32566d4@certik.com>
> + mutex_lock(&q->limits_lock);
> + WRITE_ONCE(disk->bdi->ra_pages, ra_kb >> (PAGE_SHIFT - 10));
> + mutex_unlock(&q->limits_lock);
This takes q->limits_lock while queue_attr_store() still holds q->sysfs_lock.
6.12 has no sysfs_lock -> limits_lock order today, c99f66e4084a ("block: fix
queue freeze vs limits lock order in sysfs store methods") removed it. With
sd_revalidate_disk() entering the queue under limits_lock and del_gendisk()
taking sysfs_lock while it holds the queue's usage counter, lockdep sees a
cycle.
queue_ra_store() on 6.12 took no limits_lock before, so could you send a v3
that drops the lock (keep the WRITE_ONCE()) and names the two folded commits in
the backport note, 5e40f4452dc9 ("block: protect read_ahead_kb using
q->limits_lock") and d23977fee1ee ("block: remove q->sysfs_lock for attributes
which don't need it")?
--
Thanks,
Sasha
prev parent reply other threads:[~2026-12-02 13:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 1:12 [PATCH 6.12.y v2] block: Remove queue freezing from several sysfs store callbacks Dickson Wu via B4 Relay
2026-12-02 13:48 ` Sasha Levin [this message]
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=2026-12-01-1-daily-reply-0018@kernel.org \
--to=sashal@kernel.org \
--cc=axboe@kernel.dk \
--cc=bvanassche@acm.org \
--cc=devnull+dickson.wu.certik.com@kernel.org \
--cc=dickson.wu@certik.com \
--cc=hch@lst.de \
--cc=linux-block@vger.kernel.org \
--cc=ming.lei@redhat.com \
--cc=nilay@linux.ibm.com \
--cc=stable@vger.kernel.org \
/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