[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1481007190.18162.570.camel@edumazet-glaptop3.roam.corp.google.com>
Date: Mon, 05 Dec 2016 22:53:10 -0800
From: Eric Dumazet <eric.dumazet@...il.com>
To: Gao Feng <fgao@...ai8.com>
Cc: "David S. Miller" <davem@...emloft.net>,
Mahesh Bandewar <maheshb@...gle.com>,
Eric Dumazet <edumazet@...gle.com>,
Linux Kernel Network Developers <netdev@...r.kernel.org>
Subject: Re: [PATCH net-next 1/1] driver: ipvlan: Free the port memory
directly with kfree instead of kfree_rcu
On Tue, 2016-12-06 at 14:31 +0800, Gao Feng wrote:
> Because I don't fully hold the ipvlan codes now, I am afraid of that
> there is someone which may get the port address when
> ipvlan_port_destroy. So the original ipvlan_port_destroy uses the
> kfree_rcu to avoid it.
>
> I am sure there is unnecessary to use kfree in ipvlan_port_create.
And I am pretty sure it is unnecessary to use kfree_rcu() in
ipvlan_port_destroy() as well.
I highly suggest you spend time on learning why.
Powered by blists - more mailing lists