lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <07191509-5186-487B-96D5-F859498CB93E@linux.dev>
Date: Wed, 26 Jul 2023 15:05:26 +0800
From: Muchun Song <muchun.song@...ux.dev>
To: Qi Zheng <zhengqi.arch@...edance.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
 david@...morbit.com,
 tkhai@...ru,
 Vlastimil Babka <vbabka@...e.cz>,
 Roman Gushchin <roman.gushchin@...ux.dev>,
 djwong@...nel.org,
 Christian Brauner <brauner@...nel.org>,
 "Paul E. McKenney" <paulmck@...nel.org>,
 tytso@....edu,
 steven.price@....com,
 cel@...nel.org,
 senozhatsky@...omium.org,
 yujie.liu@...el.com,
 gregkh@...uxfoundation.org,
 linux-kernel@...r.kernel.org,
 linux-mm@...ck.org,
 x86@...nel.org,
 kvm@...r.kernel.org,
 xen-devel@...ts.xenproject.org,
 linux-erofs@...ts.ozlabs.org,
 linux-f2fs-devel@...ts.sourceforge.net,
 cluster-devel@...hat.com,
 linux-nfs@...r.kernel.org,
 linux-mtd@...ts.infradead.org,
 rcu@...r.kernel.org,
 netdev@...r.kernel.org,
 dri-devel@...ts.freedesktop.org,
 linux-arm-msm@...r.kernel.org,
 dm-devel@...hat.com,
 linux-raid@...r.kernel.org,
 linux-bcache@...r.kernel.org,
 virtualization@...ts.linux-foundation.org,
 linux-fsdevel@...r.kernel.org,
 linux-ext4@...r.kernel.org,
 linux-xfs@...r.kernel.org,
 linux-btrfs@...r.kernel.org
Subject: Re: [PATCH v2 18/47] rcu: dynamically allocate the rcu-kfree shrinker



> On Jul 24, 2023, at 17:43, Qi Zheng <zhengqi.arch@...edance.com> wrote:
> 
> Use new APIs to dynamically allocate the rcu-kfree shrinker.
> 
> Signed-off-by: Qi Zheng <zhengqi.arch@...edance.com>
> ---
> kernel/rcu/tree.c | 21 +++++++++++++--------
> 1 file changed, 13 insertions(+), 8 deletions(-)
> 
> diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c
> index 1449cb69a0e0..d068ce3567fc 100644
> --- a/kernel/rcu/tree.c
> +++ b/kernel/rcu/tree.c
> @@ -3445,12 +3445,7 @@ kfree_rcu_shrink_scan(struct shrinker *shrink, struct shrink_control *sc)
> return freed == 0 ? SHRINK_STOP : freed;
> }
> 
> -static struct shrinker kfree_rcu_shrinker = {
> -	.count_objects = kfree_rcu_shrink_count,
> -	.scan_objects = kfree_rcu_shrink_scan,
> -	.batch = 0,
> -	.seeks = DEFAULT_SEEKS,
> -};
> +static struct shrinker *kfree_rcu_shrinker;

Same as patch #17.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ