Re: Possible memory leak in xfrm_policy_insert

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"David S. Miller" <davem@redhat.com> wrote:
>
>    From: Andrew Morton <akpm@digeo.com>
>    Date: Sat, 14 Jun 2003 01:37:53 -0700
> 
>    Herbert Xu <herbert@gondor.apana.org.au> wrote:
>    > +	smp_call_function(flow_cache_flush_per_cpu, &info, 1, 0);
>    >   	flow_cache_flush_per_cpu(&info);
>    
>    on_each_cpu() will do this for you.
> 
> egrep linux-2.4/include/linux/*.h on_each_cpu()
> 
> :-)
> 
> A backport to 2.4.x so we're trying to stick to 2.4.x-only
> facilities as much as possible.

bunch tards.  backport this then ;)

/*
 * Call a function on all processors
 */
static inline int on_each_cpu(void (*func) (void *info), void *info,
			      int retry, int wait)
{
	int ret = 0;

	preempt_disable();
	ret = smp_call_function(func, info, retry, wait);
	func(info);
	preempt_enable();
	return ret;
}


-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux