login
Header Space

 
 

Re: [PATCH 2/7] CAN: Add PF_CAN core module

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Urs Thuermann <urs@...>
Cc: <netdev@...>, David Miller <davem@...>, Thomas Gleixner <tglx@...>, Oliver Hartkopp <oliver@...>, Oliver Hartkopp <oliver.hartkopp@...>
Date: Wednesday, September 19, 2007 - 4:27 am

Urs Thuermann wrote:


Its a seperate section to prevent false sharing.



IMO this is a perfectly normal condition (not finding a module).
Especially the !KMOD case is hardly an error.




Yes, you do request_module, load the module, get the cp pointer
from proto_tab, the module is unloaded again. cp points to
stable memory. Using module references would fix this.



Thanks for the explanation.




I'm not saying you should use *only* RCU, you need the lock
for additions/removal of course, but since the receive path
doesn't take that lock and relies on RCU, you need to use
the _rcu list walking variant to avoid races with concurrent
list changes.




Yes. register_netdevice() takes the rtnl mutex, so it can only
be used in process context.



I don't think you will get *exactly* one second, but you also have
no guarantee for that now.



Thanks :)
-
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 2/7] CAN: Add PF_CAN core module, Urs Thuermann, (Mon Sep 17, 6:03 am)
Re: [PATCH 2/7] CAN: Add PF_CAN core module, Patrick McHardy, (Tue Sep 18, 9:31 am)
Re: [PATCH 2/7] CAN: Add PF_CAN core module, Urs Thuermann, (Tue Sep 18, 5:20 pm)
Re: [PATCH 2/7] CAN: Add PF_CAN core module, Patrick McHardy, (Wed Sep 19, 4:27 am)
Re: [PATCH 2/7] CAN: Add PF_CAN core module, Urs Thuermann, (Thu Sep 20, 4:53 am)
Re: [PATCH 2/7] CAN: Add PF_CAN core module, Patrick McHardy, (Thu Sep 20, 6:33 am)
Re: [PATCH 2/7] CAN: Add PF_CAN core module, Urs Thuermann, (Thu Sep 20, 7:30 am)
Re: [PATCH 2/7] CAN: Add PF_CAN core module, Patrick McHardy, (Thu Sep 20, 7:43 am)
Re: [PATCH 2/7] CAN: Add PF_CAN core module, Urs Thuermann, (Tue Sep 18, 10:54 am)
Re: [PATCH 2/7] CAN: Add PF_CAN core module, Patrick McHardy, (Tue Sep 18, 11:07 am)
Re: [PATCH 2/7] CAN: Add PF_CAN core module, Paul E. McKenney, (Mon Sep 17, 11:50 am)
speck-geostationary