Re: Possible memory leak in xfrm_policy_insert

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

 



   From: Herbert Xu <herbert@gondor.apana.org.au>
   Date: Mon, 9 Jun 2003 21:01:32 +1000

   I've now replaced rcu with smp_call_function.
   
egrep "on_each_cpu" linux-2.4/include/linux/*.h

Also, IRQ disabling in the flow cache is unacceptable.

Maybe do this:

1) Implement the garbage collector for policies I talked
   about

2) Use smp_call_function to schedule a tasklet on each cpu.
   Make it shrink the entire cpu local flow cache.

3) XFRM Policy GC will later notice the refcount hit
   zero, and it will finish the destroy at that time.
-
: 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