Re: [PATCH] conntrack: Reduce conntrack count in nf_conntrack_free()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Dumazet
Date: Tuesday, March 24, 2009 - 5:25 am

Eric Dumazet a écrit :

I forgot to say this is what we do for 'struct file' freeing as well. We
decrement nr_files in file_free(), not in file_free_rcu()

static inline void file_free_rcu(struct rcu_head *head)
{
        struct file *f = container_of(head, struct file, f_u.fu_rcuhead);

        put_cred(f->f_cred);
        kmem_cache_free(filp_cachep, f);
}

static inline void file_free(struct file *f)
{
        percpu_counter_dec(&nr_files);      <<<< HERE >>>>
        file_check_state(f);
        call_rcu(&f->f_u.fu_rcuhead, file_free_rcu);
}



--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ucc_geth: nf_conntrack: table full, dropping packet., Joakim Tjernlund, (Mon Mar 23, 3:42 am)
Re: ucc_geth: nf_conntrack: table full, dropping packet., Patrick McHardy, (Mon Mar 23, 5:15 am)
Re: ucc_geth: nf_conntrack: table full, dropping packet., Joakim Tjernlund, (Mon Mar 23, 5:25 am)
Re: ucc_geth: nf_conntrack: table full, dropping packet., Patrick McHardy, (Mon Mar 23, 5:29 am)
Re: ucc_geth: nf_conntrack: table full, dropping packet., Joakim Tjernlund, (Mon Mar 23, 5:59 am)
Re: ucc_geth: nf_conntrack: table full, dropping packet., Joakim Tjernlund, (Mon Mar 23, 10:42 am)
Re: ucc_geth: nf_conntrack: table full, dropping packet., Patrick McHardy, (Mon Mar 23, 10:49 am)
Re: ucc_geth: nf_conntrack: table full, dropping packet., Eric Dumazet, (Mon Mar 23, 10:49 am)
Re: ucc_geth: nf_conntrack: table full, dropping packet., Joakim Tjernlund, (Mon Mar 23, 11:04 am)
Re: ucc_geth: nf_conntrack: table full, dropping packet., Eric Dumazet, (Mon Mar 23, 11:08 am)
Re: ucc_geth: nf_conntrack: table full, dropping packet., Joakim Tjernlund, (Tue Mar 24, 1:22 am)
Re: ucc_geth: nf_conntrack: table full, dropping packet., Joakim Tjernlund, (Tue Mar 24, 3:55 am)
Re: [PATCH] conntrack: Reduce conntrack count in nf_conntr ..., Eric Dumazet, (Tue Mar 24, 5:25 am)
Re: [PATCH] conntrack: Reduce conntrack count in nf_conntr ..., Joakim Tjernlund, (Tue Mar 24, 11:29 am)