[lkml]   [2003]   [Jul]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] Remove module reference counting.
Rusty Russell wrote:

> If module removal is to be a rare and unusual event, it
> doesn't seem so sensible to go to great lengths in the code to handle
> just that case. In fact, it's easier to leave the module memory in
> place, and not have the concept of parts of the kernel text (and some
> types of kernel data) vanishing.

Rusty and others,

Module removal is *not* a rare event. One common case it is used is on
laptops during suspend. A lot of drivers do not do proper PM and so must
be unloaded before suspend and relaoaded after resume. How will this be
affected by removing module refcounting, even if we use your <deleted>
idea? If nothing else, having the ability to *reload* a module --
thereby reinitializing the device and achieving the same effect as
actually rmmod/insmod is what is needed.

I must say that it is somewhat disconcerting that I can rmmod a network
driver while it is being used by a network interface. A stupid user like
me can definitely shoot myself in the foot now.

Last but not least weren't we moving towards a more modular kernel with
early userspace loading things from initrd as needed? Removing existing
module functionality, however broken it may be, seems to me a step
backward in this regard.

Rahul Karnik

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:47    [W:0.104 / U:0.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site