Subject: Re: [PATCH, netfilter] NUMA aware ipv4/netfilter/ip_tables.c

From: Andi Kleen <[email-masked]>
Date: Tue, 20 Sep 2005 18:30:20 +0200

On Tuesday 20 September 2005 11:47, Eric Dumazet wrote:
> +#ifdef CONFIG_NUMA
> +                       struct mempolicy *oldpol;
> +                       struct mempolicy prefnodepolicy = {
> +                               .refcnt = ATOMIC_INIT(1),
> +                               .policy = MPOL_PREFERRED,
> +                               .v.preferred_node = cpu_to_node(cpu),
> +                       };
> +                       oldpol = current->mempolicy;
> +                       current->mempolicy = &prefnodepolicy;
> +#endif

I would prefer if random code didn't mess with mempolicy internals
like this. Better just call sys_set_mempolicy() 

-Andi