netdev
[Top] [All Lists]

Re: MOD_{INC,SEC}_USE_COUNT() in net/ipv{4,6}

To: yoshfuji@xxxxxxxxxxxxxx
Subject: Re: MOD_{INC,SEC}_USE_COUNT() in net/ipv{4,6}
From: "David S. Miller" <davem@xxxxxxxxxx>
Date: Wed, 09 Apr 2003 18:00:04 -0700 (PDT)
Cc: kuznet@xxxxxxxxxxxxx, netdev@xxxxxxxxxxx, usagi@xxxxxxxxxxxxxx
In-reply-to: <20030409.204157.51648508.yoshfuji@xxxxxxxxxxxxxx>
References: <20030409.204157.51648508.yoshfuji@xxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
   From: YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@xxxxxxxxxxxxxx>
   Date: Wed, 09 Apr 2003 20:41:57 +0900 (JST)

   This patch (against 2.5.67) converts MOD_{INC,DEC}_USE_COUNT in 
   net/ipv{4,6} to try_module_get() and module_put().

Applied, but let's recognize that ipv6 is totally broken
in this area.

The try_module_get()'s, in order to work, would need to happen
at a higher layer (socket ops or similar).  But even this is
broken, module unloading of ipv6 needs to be done via some kind
of callback scheme, the simple counter mechanism that modules
use now is inappropriate for things like ipv6 which already keeps
track of it's own references internally and only it knows how to
interlock properly to cleanly check for module references and to
shut down the whole module.


<Prev in Thread] Current Thread [Next in Thread>