From: Jie Wang <jie.wang@intel.com>
To: agruenba@redhat.com
Cc: bigeasy@linutronix.de, clrkwllms@kernel.org,
gfs2@lists.linux.dev, linux-rt-devel@lists.linux.dev,
rostedt@goodmis.org,
syzbot+642d0561f78362d67d3f@syzkaller.appspotmail.com,
Jie Wang <jie.wang@intel.com>
Subject: [PATCH v2 0/2] gfs2: fix quota init duplicate scan on PREEMPT_RT
Date: Tue, 21 Apr 2026 16:32:05 +0000 [thread overview]
Message-ID: <20260421163207.48565-1-jie.wang@intel.com> (raw)
In-Reply-To: <CAHc6FU5vQWtHNotdA5cjxF6iE4kFRj1E9K55+BBss256KaaKyw@mail.gmail.com>
This series addresses the PREEMPT_RT issue reported by syzbot in
gfs2_quota_init() duplicate-id handling.
On PREEMPT_RT, taking a lockref reference under the quota hash bucket
bitlock may sleep and trigger "sleeping function called from invalid
context".
Patch 1 fixes that path by using a no-ref lookup, and implements
gfs2_qd_search_bucket() on top of the no-ref helper.
Patch 2 keeps duplicate-slot zeroing correctness adjustment separate,
and expresses it by moving qc++ to the for-loop third expression.
Changes in v2:
- Split v1 into two patches as requested.
- Implement gfs2_qd_search_bucket() on top of
gfs2_qd_search_bucket_noref().
- Move qc++ into the for-loop third expression.
The qd_hash_table -> rhashtable conversion is a larger refactor and is
kept out of this bugfix series.
Jie Wang (2):
gfs2: fix quota init duplicate scan
gfs2: move quota_init qc iterator increment
fs/gfs2/quota.c | 39 ++++++++++++++++++++++++++-------------
1 file changed, 26 insertions(+), 13 deletions(-)
--
2.34.1
next prev parent reply other threads:[~2026-04-21 8:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-20 11:06 [PATCH] gfs2: fix quota init duplicate scan Jie Wang
2026-04-20 12:35 ` Andreas Gruenbacher
2026-04-21 16:32 ` Jie Wang [this message]
2026-04-21 16:32 ` [PATCH v2 1/2] " Jie Wang
2026-04-22 12:10 ` Andreas Gruenbacher
2026-04-23 13:39 ` [PATCH v3] " Jie Wang
2026-04-23 7:23 ` Andreas Gruenbacher
2026-04-21 16:32 ` [PATCH v2 2/2] gfs2: move quota_init qc iterator increment Jie Wang
2026-04-22 12:15 ` Andreas Gruenbacher
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=20260421163207.48565-1-jie.wang@intel.com \
--to=jie.wang@intel.com \
--cc=agruenba@redhat.com \
--cc=bigeasy@linutronix.de \
--cc=clrkwllms@kernel.org \
--cc=gfs2@lists.linux.dev \
--cc=linux-rt-devel@lists.linux.dev \
--cc=rostedt@goodmis.org \
--cc=syzbot+642d0561f78362d67d3f@syzkaller.appspotmail.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