On Sat, Jun 10, 2006 at 01:42:21PM +0100, Daniel Drake ([EMAIL PROTECTED])
wrote:
> Herbert Xu wrote:
> >Correct. All callers of hard_start_xmit do so under RCU or equivalent
> >locks so they must be complete by the time synchronize_net() returns.
>
> Does this hold for other operations? Such as:
>
> - The netdev->set_mac_address function
> - The wireless ioctl's (SIOCSIWESSID, etc)
>
> Are these also guaranteed to have returned after synchronize_net()?
None of above calls is protected with RCU (except set_mac_address()
called through ioctl, which is performed under read_lock which disables
preemtption), so they still can run after synchronize_net().
But if you are talking about synchronize_net() inside
unregister_netdevice(), which is called from
usbnet_disconnect()->unregister_netdev(), than it is safe.
> Thanks,
> Daniel
--
Evgeniy Polyakov
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html