From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Poil Zero <poilandgginchi@gmail.com>
Cc: "Alice Ryhl" <aliceryhl@google.com>,
"Arve Hjønnevåg" <arve@android.com>,
"Todd Kjos" <tkjos@android.com>,
"Christian Brauner" <brauner@kernel.org>,
"Carlos Llamas" <cmllamas@google.com>,
linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org
Subject: Re: [PATCH v4] rust_binder: unregister shrinker if binderfs initialization fails
Date: Thu, 3 Dec 2026 13:05:32 +0100 [thread overview]
Message-ID: <2026120300-backed-deprive-58c8@gregkh> (raw)
In-Reply-To: <20261203032206.1039135-1-poilandgginchi@gmail.com>
On Thu, Dec 03, 2026 at 11:22:06AM +0800, Poil Zero wrote:
> BinderModule::init() registers the Binder shrinker before initializing
> binderfs. If init_rust_binderfs() fails, the driver returns an error
> but leaves the shrinker registered and its list_lru allocated.
>
> Unregister the shrinker on this error path before destroying its
> list_lru so that active reclaim callbacks finish before teardown.
> Return the original binderfs error.
>
> Fixes: eafedbc7c050 ("rust_binder: add Rust Binder driver")
> Signed-off-by: Poil Zero <poilandgginchi@gmail.com>
> ---
> Changes in v4:
> - Resend with git send-email to preserve the diff headers.
>
> Changes in v3:
> - Match the From and Signed-off-by names.
You might have matched it, but that's not the correct one to use, please
fix and use your real name for both, I can't take this as-is.
thanks,
greg k-h
next prev parent reply other threads:[~2026-12-03 12:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 3:22 [PATCH v4] rust_binder: unregister shrinker if binderfs initialization fails Poil Zero
2026-12-03 5:28 ` Shuai Liu
2026-12-03 8:19 ` Alice Ryhl
2026-12-03 12:05 ` Greg Kroah-Hartman [this message]
[not found] ` <CAGdLfDdeZxW1QgWJaBu0g6La1vSMVduFnL9bN+zUrx6ife9ZrQ@mail.gmail.com>
2026-12-04 3:42 ` 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=2026120300-backed-deprive-58c8@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=aliceryhl@google.com \
--cc=arve@android.com \
--cc=brauner@kernel.org \
--cc=cmllamas@google.com \
--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 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.