From: Lin Tzu Yang <rongh7426@gmail.com>
To: Haruka Amakawa <macchacat@pm.me>
Cc: Breno Leitao <leitao@debian.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Andreas Hindborg <a.hindborg@kernel.org>,
Slawomir Stepien <sst@poczta.fm>,
William Chuang <founder@logarcheon.com>,
linux-fsdevel@vger.kernel.org, linux-usb@vger.kernel.org,
target-devel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH RFC v3] configfs: don't lock the root inode in configfs_depend_item_unlocked()
Date: Mon, 30 Nov 2026 17:34:05 +0800 [thread overview]
Message-ID: <20261130093405.837082-1-rongh7426@gmail.com> (raw)
In-Reply-To: <20261129-configfs-depend-root-lock-v3-1-82417fbbaba0@pm.me>
On Sun, Nov 29, 2026 at 09:56:21PM +0900, Haruka Amakawa wrote:
> - Not tested: a depend racing with configfs_register_subsystem() or
> configfs_unregister_subsystem() of the target subsystem.
I ran the same tests on arm64 (QEMU/KVM on a Raspberry Pi 5,
PROVE_LOCKING + KASAN, hung task timeout 30s), configfs-next
2e0fad9d2eae with and without this patch.
Without the patch, the tpgt_1 mkdir/rmdir loop against the rename()
loop stops after the first mkdir. lockdep says nothing, and after 30s
the hung task detector reports both tasks, one in
configfs_depend_item_unlocked() and one in lock_two_directories().
With the patch, 60 seconds gives 2468 mkdirs and 4414 rename() calls,
and there are no lockdep, hung task, KASAN or WARNING reports.
rmdir of functions/tcm.usb0 still returns -EBUSY while tpgt_1 exists
and works after it is removed. The configfs selftest passes 25/25,
and the syzbot reproducer for 8c0a48f6c8357c9da819 runs with no
lockdep report.
I did not test the register/unregister race either.
Tested-by: Lin Tzu Yang <rongh7426@gmail.com>
prev parent reply other threads:[~2026-11-30 9:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-29 12:56 [PATCH RFC v3] configfs: don't lock the root inode in configfs_depend_item_unlocked() Haruka Amakawa via B4 Relay
2026-11-29 12:56 ` Haruka Amakawa
2026-11-29 13:05 ` sashiko-bot
2026-11-29 13:18 ` Greg Kroah-Hartman
2026-11-29 13:23 ` Haruka Amakawa
2026-11-30 9:34 ` Lin Tzu Yang [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=20261130093405.837082-1-rongh7426@gmail.com \
--to=rongh7426@gmail.com \
--cc=a.hindborg@kernel.org \
--cc=founder@logarcheon.com \
--cc=gregkh@linuxfoundation.org \
--cc=leitao@debian.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=macchacat@pm.me \
--cc=sst@poczta.fm \
--cc=target-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.