From: Shuai Liu <847807867@qq.com>
To: poilandgginchi@gmail.com, aliceryhl@google.com,
gregkh@linuxfoundation.org
Cc: arve@android.com, tkjos@android.com, brauner@kernel.org,
cmllamas@google.com, rust-for-linux@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4] rust_binder: unregister shrinker if binderfs initialization fails
Date: Thu, 3 Dec 2026 13:28:02 +0800 [thread overview]
Message-ID: <tencent_471395EE17D2572C67F2E24DD6B81F620408@qq.com> (raw)
In-Reply-To: <20261203032206.1039135-1-poilandgginchi@gmail.com>
Hi Poil,
Reviewed-by: Shuai Liu <847807867@qq.com>
I reviewed the patch and verified it:
- Applied cleanly on top of master (d06ce6f1eb5ee).
- Build-tested with CONFIG_RUST=y and CONFIG_ANDROID_BINDER_IPC_RUST=y
(clang 18, rustc 1.100); the Rust Binder object compiles cleanly.
- Boot-tested in QEMU: the Rust kernel KUnit suites pass and
rust_binderfs mounts with the expected devices (binder, hwbinder,
vndbinder, binder-control, features) and unmounts cleanly, no
warnings in the boot log.
- The unregister() ordering is correct: shrinker_free() before
list_lru_destroy(). mm/shrinker.c confirms shrinker_free() waits
for in-flight callbacks via wait_for_completion() and never touches
the caller-owned list_lru, so destroying the list_lru afterwards is
safe and no double-destroy can happen (list_lru_destroy() is
idempotent anyway).
One side note: the pre-existing Error::from_errno(ret) with ret == 0
in the shrinker_alloc() failure path of Shrinker::register() is
already addressed by Adhyansh Verma's pending patch "rust_binder:
return ENOMEM on shrinker allocation failure", so nothing to do here.
Thanks,
Shuai Liu
next prev parent reply other threads:[~2026-12-03 5:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 3:22 Poil Zero
2026-12-03 5:28 ` Shuai Liu [this message]
2026-12-03 8:19 ` Alice Ryhl
2026-12-03 12:05 ` Greg Kroah-Hartman
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=tencent_471395EE17D2572C67F2E24DD6B81F620408@qq.com \
--to=847807867@qq.com \
--cc=aliceryhl@google.com \
--cc=arve@android.com \
--cc=brauner@kernel.org \
--cc=cmllamas@google.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=poilandgginchi@gmail.com \
--cc=rust-for-linux@vger.kernel.org \
--cc=tkjos@android.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
all inboxes | Powered by JetHome®