Modules with list
Quoted 10 lines · Rusty Russel
In message <[email protected]> you write:
Quoted 9 lines
Quoted 7 lines · Rusty Russell
In message <[email protected]> you write:
Quoted 1 line
Quoted 1 line
This would only happen if someone says "rmmod --wait".
As I realized last night after I wrote this, there is a bug in
module.c. IfO_NONBLOCKis specified, we shouldn't drop the module sempaphore at all, for exactly this reason. A bug I introduced while "cleaning up" the "--wait" path.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Sorry for the confusion.
Then if you do "rmmod --wait" on some module that is in use,
every lsmod, insmod and rmmod will hang while attempting to acquireSorry, that's why I said "*If O_NONBLOCK* is specified" (ie. still drop it for the --wait case).
Oops! Sorry for misreading your message.
Even though it was not responsive to what you described, I do
hope you see my point about the problem with "rmmod --wait".
Adam J. Richter __ ______________ 575 Oroville Road [email protected] \ / Milpitas, California 95035 +1 408 309-6081 | g g d r a s i l United States of America
"Free Software For The Rest Of Us."
In message <[email protected]> you write:
Quoted 1 line
Rusty Russel wrote:
That's Russell 8)
Quoted 7 lines
Quoted 2 lines
Sorry, that's why I said "*If O_NONBLOCK* is specified" (ie. still drop it for the --wait case).
Oops! Sorry for misreading your message.
Even though it was not responsive to what you described, I do
hope you see my point about the problem with "rmmod --wait".
But's it's an absolute requirement, to make modules removable in some circumstances, otherwise you end up being starved and the module cannot be removed (security modules and netfilter modules strike me as the obvious cases, but there are probably more).
Cheers!
Rusty.
PS. You're right, net/ipv4/ doesn't use skb->destructor. --
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.