Thread (5 messages) flat view 5 messages, 3 authors, 2012-07-26

Re: open sockets preventing unregister_netdevice from completing in linux-next (next-20120724)

From: Eric Dumazet <hidden>
Date: 2012-07-26 17:15:33

On Wed, 2012-07-25 at 15:17 -0700, David Miller wrote:
From: Eric Dumazet <redacted>
Date: Wed, 25 Jul 2012 16:38:48 +0200
quoted
Yes, we miss what was done with rt_cache_flush() : find all cached
routes and release all dev references...
We can fix this with a two-pronged approach:

1) Walk the FIB info nexthops and invalidate.

2) Entries not cached in the FIB info nexthops go into a
   per-netns list which is scanned as well.

I'll try to work on this if nobody beats me to it.
With your latest patch, I can "rmmod tg3" while sockets are active.

Not sure we need all this now ?

(the trick is probably in fib_semantics.c, when you changed
dst_release() to dst_free())
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help