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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Tue, 3 Mar 2009 15:44:04 +0100
From:	Nick Piggin <npiggin@...e.de>
To:	Lai Jiangshan <laijs@...fujitsu.com>
Cc:	Pekka Enberg <penberg@...helsinki.fi>,
	linux-kernel@...r.kernel.org,
	Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH -mm] slqb: use correct name for rcu callback

Thanks.
Acked-by: Nick Piggin <npiggin@...e.de>

On Tue, Mar 03, 2009 at 09:27:15PM +0800, Lai Jiangshan wrote:
> 
> struct slqb_page defines struct rcu_head rcu_head for rcu,
> the rcu callback should use it.
> 
> Signed-off-by: Lai Jiangshan <laijs@...fujitsu.com>
> ---
> diff --git a/mm/slqb.c b/mm/slqb.c
> index 07bf5b3..48bdf3b 100644
> --- a/mm/slqb.c
> +++ b/mm/slqb.c
> @@ -1026,7 +1043,7 @@ static void rcu_free_slab(struct rcu_head *h)
>  {
>  	struct slqb_page *page;
>  
> -	page = container_of((struct list_head *)h, struct slqb_page, lru);
> +	page = container_of(h, struct slqb_page, rcu_head);
>  	__free_slab(page->list->cache, page);
>  }
>  
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ