netdev
[Top] [All Lists]

[PATCH 2.5.68] net/ipv6 missing kmem_cache_destroy

To: "netdev@xxxxxxxxxxx" <netdev@xxxxxxxxxxx>
Subject: [PATCH 2.5.68] net/ipv6 missing kmem_cache_destroy
From: Daniel McNeil <daniel@xxxxxxxx>
Date: 29 Apr 2003 09:21:18 -0700
Organization:
Sender: netdev-bounce@xxxxxxxxxxx
While trying to get ipv6 to work as a module with the new module
reference code, I notice that ipv6 is missing the kmem_cache_destroy()
calls that the init functions created.

Another problem with ipv6 is that it creates sockets in the init
routine, so there are reference to the module which will prevent it
from being unloaded.  I tried adding a module_put for every
socket created in the init routines, but ran into a problem with
inet6_exit() calling sock_unregister(PF_INET6) as the very first thing.
This caused a problem when the cleanup routines were called and
the did a sock_release().

Any ideas on how to fix this so ipv6 can be a module?
init routines creating sockets makes things difficult.

I've attached a patch to 2.5.68 to add the missing kmem_cache_destroy
calls.

BTW, how does one get on the netdev mailing list?

Thanks,

-- 
Daniel McNeil <daniel@xxxxxxxx>

Attachment: patch.2.5.68-ipv6.kmem
Description: Text Data

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 2.5.68] net/ipv6 missing kmem_cache_destroy, Daniel McNeil <=