[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140325142004.7507d310@samsung-9>
Date: Tue, 25 Mar 2014 14:20:04 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: Hannes Frederic Sowa <hannes@...essinduktion.org>
Cc: David Miller <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: [PATCH net] ipv6: move DAD and addrconf_verify processing to
workqueue
On Tue, 25 Mar 2014 09:03:01 +0100
Hannes Frederic Sowa <hannes@...essinduktion.org> wrote:
>
> -static void addrconf_verify(unsigned long foo)
> +static void addrconf_verify_rtnl(void)
> {
> unsigned long now, next, next_sec, next_sched;
> struct inet6_ifaddr *ifp;
> int i;
>
> + ASSERT_RTNL();
> +
> rcu_read_lock_bh();
> spin_lock(&addrconf_verify_lock);
Since RTNL is now held in addrconf_verify(), is addrconf_verify_lock is not needed.
Since RTNL is held, rcu is not needed either.
Also, I would skip the wrapper (addrconf_verify_rtnl) and just
put it all in addrconf_verify_work
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists