Re: [PATCH next/mmotm] slub: partly fix freeze in __slab_free

From: Hugh Dickins
Date: Mon Jul 11 2011 - 16:47:06 EST


On Mon, 11 Jul 2011, Eric Dumazet wrote:
> Le lundi 11 juillet 2011 Ã 11:58 -0700, Hugh Dickins a Ãcrit :
> > My load tests on PowerPC freeze within minutes in __slab_free().
> > I happened to try PPC first, didn't try without this fix on x86.
>
> I suspect you hit the bug on 32bit arch ?

No, it was ppc64. I've not actually tried that load on mmotm 32bit
at all yet, better do so tonight!

Hugh

>
> diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h
> index 3d76a43..1351d28 100644
> --- a/include/linux/mm_types.h
> +++ b/include/linux/mm_types.h
> @@ -62,7 +62,7 @@ struct page {
> struct { /* SLUB cmpxchg_double area */
> void *freelist;
> union {
> - unsigned long counters;
> + u64 counters;
> struct {
> unsigned inuse:16;
> unsigned objects:15;