Re: [PATCH] rtnl: Simplify ASSERT_RTNL

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Patrick McHardy
Date: Sunday, September 30, 2007 - 8:47 am

Herbert Xu wrote:


In the IPv6 case we're only changing the multicast list,
so we're never calling into __dev_set_promiscuity.

I actually even added a comment about this :)

        /* Unicast addresses changes may only happen under the rtnl,
         * therefore calling __dev_set_promiscuity here is safe.
         */

I would prefer to keep the ASSERT_RTNL in __dev_set_promiscuity
since it also covers the __dev_set_rx_mode path. How about
adding an ASSERT_RTNL_ATOMIC without the might_sleep or simply
open coding it?
-
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:
[PATCH] rtnl: Simplify ASSERT_RTNL, Eric W. Biederman, (Fri Sep 28, 5:59 pm)
Re: [PATCH] rtnl: Simplify ASSERT_RTNL, Herbert Xu, (Fri Sep 28, 9:31 pm)
Re: [PATCH] rtnl: Simplify ASSERT_RTNL, Patrick McHardy, (Sat Sep 29, 8:32 am)
Re: [PATCH] rtnl: Simplify ASSERT_RTNL, Eric W. Biederman, (Sat Sep 29, 10:18 am)
Re: [PATCH] rtnl: Simplify ASSERT_RTNL, Patrick McHardy, (Sat Sep 29, 10:51 am)
Re: [PATCH] rtnl: Simplify ASSERT_RTNL, Herbert Xu, (Sat Sep 29, 5:24 pm)
Re: [PATCH] rtnl: Simplify ASSERT_RTNL, Herbert Xu, (Sat Sep 29, 5:28 pm)
Re: [PATCH] rtnl: Simplify ASSERT_RTNL, Patrick McHardy, (Sun Sep 30, 8:47 am)
Re: [PATCH] rtnl: Simplify ASSERT_RTNL, Herbert Xu, (Tue Oct 2, 2:28 am)
Re: [PATCH] rtnl: Simplify ASSERT_RTNL, Patrick McHardy, (Tue Oct 2, 8:29 am)
Re: [PATCH] rtnl: Simplify ASSERT_RTNL, Herbert Xu, (Tue Oct 2, 11:06 pm)
Re: [PATCH] rtnl: Simplify ASSERT_RTNL, Patrick McHardy, (Sun Oct 7, 9:40 pm)
Re: [PATCH] rtnl: Simplify ASSERT_RTNL, David Miller, (Wed Oct 10, 9:16 pm)
Re: [PATCH] rtnl: Simplify ASSERT_RTNL, Eric W. Biederman, (Wed Oct 10, 11:57 pm)
Re: [PATCH] rtnl: Simplify ASSERT_RTNL, Herbert Xu, (Thu Oct 11, 12:12 am)
Re: [PATCH] rtnl: Simplify ASSERT_RTNL, Eric W. Biederman, (Thu Oct 11, 1:23 am)
Re: [PATCH] rtnl: Simplify ASSERT_RTNL, Herbert Xu, (Thu Oct 11, 1:28 am)
Re: [PATCH] rtnl: Simplify ASSERT_RTNL, Eric W. Biederman, (Thu Oct 11, 9:33 am)
Re: [PATCH] rtnl: Simplify ASSERT_RTNL, David Miller, (Thu Oct 11, 5:30 pm)
Re: [PATCH] rtnl: Simplify ASSERT_RTNL, Eric W. Biederman, (Thu Oct 11, 8:15 pm)