From: Greg KH <gregkh@linuxfoundation.org>
To: Suren Baghdasaryan <surenb@google.com>
Cc: akpm@linux-foundation.org, fw@strlen.de, urezki@gmail.com,
vbabka@suse.cz, greearb@candelatech.com,
kent.overstreet@linux.dev, stable@vger.kernel.org,
patches@lists.linux.dev
Subject: Re: [PATCH 6.11.y 1/2] rcu/kvfree: Add kvfree_rcu_barrier() API
Date: Wed, 6 Nov 2024 08:09:06 +0100 [thread overview]
Message-ID: <2024110639-astute-smokiness-ea1d@gregkh> (raw)
In-Reply-To: <20241021171003.2907935-1-surenb@google.com>
On Mon, Oct 21, 2024 at 10:10:02AM -0700, Suren Baghdasaryan wrote:
> From: "Uladzislau Rezki (Sony)" <urezki@gmail.com>
>
> From: Uladzislau Rezki <urezki@gmail.com>
>
> commit 3c5d61ae919cc377c71118ccc76fa6e8518023f8 upstream.
>
> Add a kvfree_rcu_barrier() function. It waits until all
> in-flight pointers are freed over RCU machinery. It does
> not wait any GP completion and it is within its right to
> return immediately if there are no outstanding pointers.
>
> This function is useful when there is a need to guarantee
> that a memory is fully freed before destroying memory caches.
> For example, during unloading a kernel module.
>
> Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
> Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
> ---
> include/linux/rcutiny.h | 5 ++
> include/linux/rcutree.h | 1 +
> kernel/rcu/tree.c | 109 +++++++++++++++++++++++++++++++++++++---
> 3 files changed, 107 insertions(+), 8 deletions(-)
We need a signed-off-by line from you, as you did the backport here,
please fix that up and resend this series.
thanks,
greg k-h
next prev parent reply other threads:[~2024-11-06 7:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-21 17:10 [PATCH 6.11.y 1/2] rcu/kvfree: Add kvfree_rcu_barrier() API Suren Baghdasaryan
2024-10-21 17:10 ` [PATCH 6.11.y 2/2] lib: alloc_tag_module_unload must wait for pending kfree_rcu calls Suren Baghdasaryan
2024-10-21 17:45 ` Greg KH
2024-10-21 18:02 ` Suren Baghdasaryan
2024-11-06 7:09 ` Greg KH [this message]
2024-11-06 8:20 ` [PATCH 6.11.y 1/2] rcu/kvfree: Add kvfree_rcu_barrier() API Suren Baghdasaryan
2024-11-06 17:10 ` Suren Baghdasaryan
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=2024110639-astute-smokiness-ea1d@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=akpm@linux-foundation.org \
--cc=fw@strlen.de \
--cc=greearb@candelatech.com \
--cc=kent.overstreet@linux.dev \
--cc=patches@lists.linux.dev \
--cc=stable@vger.kernel.org \
--cc=surenb@google.com \
--cc=urezki@gmail.com \
--cc=vbabka@suse.cz \
/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