On Mon, 16 Apr 2007 17:02:46 -0400 (EDT),
Alan Stern <[EMAIL PROTECTED]> wrote:
> > No, only the core module has to stay. For example, every time you
> > register an input device you pin input.ko as it is the module that
> > provides ->release() method for input devices. You can freely unload
> >
On Mon, 16 Apr 2007 15:38:52 -0400 (EDT),
Alan Stern <[EMAIL PROTECTED]> wrote:
> On Mon, 16 Apr 2007, Dmitry Torokhov wrote:
> > Unfortunately all this "wait for refcount in module's exit" schemas
> > lead to the following deadlock:
> >
> > rmmod my_module <
On Mon, 16 Apr 2007 15:38:52 -0400 (EDT),
Alan Stern [EMAIL PROTECTED] wrote:
On Mon, 16 Apr 2007, Dmitry Torokhov wrote:
Unfortunately all this wait for refcount in module's exit schemas
lead to the following deadlock:
rmmod my_module
On Mon, 16 Apr 2007 17:02:46 -0400 (EDT),
Alan Stern [EMAIL PROTECTED] wrote:
No, only the core module has to stay. For example, every time you
register an input device you pin input.ko as it is the module that
provides -release() method for input devices. You can freely unload
psmouse,
On Tue, 2007-04-17 at 00:44 +0400, Alexey Dobriyan wrote:
> On Mon, Apr 16, 2007 at 03:38:52PM -0400, Alan Stern wrote:
> > 3. Change the module code so that rmmod can return _before_ the
> > module is actually unloaded from memory (but after the module's
> > exit routine has
On Mon, 16 Apr 2007, Dmitry Torokhov wrote:
> > > What about 4:
> > >
> > > When registering an [k]object increment refcount of module that
> > > provides ->release() function.
> > >
> > > That would normally require ->release function to be placed on
> > > subsystem level to allow unloading
On Mon, Apr 16, 2007 at 03:38:52PM -0400, Alan Stern wrote:
> 3. Change the module code so that rmmod can return _before_ the
> module is actually unloaded from memory (but after the module's
> exit routine has completed). This will lead to more problems.
> For example,
On 4/16/07, Greg KH <[EMAIL PROTECTED]> wrote:
On Mon, Apr 16, 2007 at 03:03:16PM -0400, Dmitry Torokhov wrote:
> On 4/16/07, Greg KH <[EMAIL PROTECTED]> wrote:
> >On Mon, Apr 16, 2007 at 02:30:17PM -0400, Dmitry Torokhov wrote:
> >> On 4/16/07, Cornelia Huck <[EMAIL PROTECTED]> wrote:
> >> >Hi,
On 4/16/07, Greg KH <[EMAIL PROTECTED]> wrote:
On Mon, Apr 16, 2007 at 03:47:13PM -0400, Dmitry Torokhov wrote:
> On 4/16/07, Alan Stern <[EMAIL PROTECTED]> wrote:
> >On Mon, 16 Apr 2007, Dmitry Torokhov wrote:
> >
> >> On 4/16/07, Cornelia Huck <[EMAIL PROTECTED]> wrote:
> >> > Hi,
> >> >
> >>
On Mon, Apr 16, 2007 at 03:03:16PM -0400, Dmitry Torokhov wrote:
> On 4/16/07, Greg KH <[EMAIL PROTECTED]> wrote:
> >On Mon, Apr 16, 2007 at 02:30:17PM -0400, Dmitry Torokhov wrote:
> >> On 4/16/07, Cornelia Huck <[EMAIL PROTECTED]> wrote:
> >> >Hi,
> >> >
> >> >based on the discussion in "How
On Mon, Apr 16, 2007 at 03:47:13PM -0400, Dmitry Torokhov wrote:
> On 4/16/07, Alan Stern <[EMAIL PROTECTED]> wrote:
> >On Mon, 16 Apr 2007, Dmitry Torokhov wrote:
> >
> >> On 4/16/07, Cornelia Huck <[EMAIL PROTECTED]> wrote:
> >> > Hi,
> >> >
> >> > based on the discussion in "How should an exit
On 4/16/07, Alan Stern <[EMAIL PROTECTED]> wrote:
On Mon, 16 Apr 2007, Dmitry Torokhov wrote:
> On 4/16/07, Cornelia Huck <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > based on the discussion in "How should an exit routine wait for
> > release() callbacks?", I've cooked up some patches that make
On Mon, 16 Apr 2007, Dmitry Torokhov wrote:
> On 4/16/07, Cornelia Huck <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > based on the discussion in "How should an exit routine wait for
> > release() callbacks?", I've cooked up some patches that make module
> > unload wait until the last reference for a
On 4/16/07, Greg KH <[EMAIL PROTECTED]> wrote:
On Mon, Apr 16, 2007 at 02:30:17PM -0400, Dmitry Torokhov wrote:
> On 4/16/07, Cornelia Huck <[EMAIL PROTECTED]> wrote:
> >Hi,
> >
> >based on the discussion in "How should an exit routine wait for
> >release() callbacks?", I've cooked up some
On Mon, Apr 16, 2007 at 07:36:19PM +0200, Cornelia Huck wrote:
> Hi,
>
> based on the discussion in "How should an exit routine wait for
> release() callbacks?"
Wait, why is this needed anymore with the recent work in splitting sysfs
away from the backing code?
thanks,
greg k-h
-
To
On Mon, Apr 16, 2007 at 02:30:17PM -0400, Dmitry Torokhov wrote:
> On 4/16/07, Cornelia Huck <[EMAIL PROTECTED]> wrote:
> >Hi,
> >
> >based on the discussion in "How should an exit routine wait for
> >release() callbacks?", I've cooked up some patches that make module
> >unload wait until the last
On 4/16/07, Cornelia Huck <[EMAIL PROTECTED]> wrote:
Hi,
based on the discussion in "How should an exit routine wait for
release() callbacks?", I've cooked up some patches that make module
unload wait until the last reference for a kobject has been dropped.
This should plug the "release
Hi,
based on the discussion in "How should an exit routine wait for
release() callbacks?", I've cooked up some patches that make module
unload wait until the last reference for a kobject has been dropped.
This should plug the "release function in already deleted module" race;
however, if the last
Hi,
based on the discussion in How should an exit routine wait for
release() callbacks?, I've cooked up some patches that make module
unload wait until the last reference for a kobject has been dropped.
This should plug the release function in already deleted module race;
however, if the last
On 4/16/07, Cornelia Huck [EMAIL PROTECTED] wrote:
Hi,
based on the discussion in How should an exit routine wait for
release() callbacks?, I've cooked up some patches that make module
unload wait until the last reference for a kobject has been dropped.
This should plug the release function in
On Mon, Apr 16, 2007 at 02:30:17PM -0400, Dmitry Torokhov wrote:
On 4/16/07, Cornelia Huck [EMAIL PROTECTED] wrote:
Hi,
based on the discussion in How should an exit routine wait for
release() callbacks?, I've cooked up some patches that make module
unload wait until the last reference for
On Mon, Apr 16, 2007 at 07:36:19PM +0200, Cornelia Huck wrote:
Hi,
based on the discussion in How should an exit routine wait for
release() callbacks?
Wait, why is this needed anymore with the recent work in splitting sysfs
away from the backing code?
thanks,
greg k-h
-
To unsubscribe from
On 4/16/07, Greg KH [EMAIL PROTECTED] wrote:
On Mon, Apr 16, 2007 at 02:30:17PM -0400, Dmitry Torokhov wrote:
On 4/16/07, Cornelia Huck [EMAIL PROTECTED] wrote:
Hi,
based on the discussion in How should an exit routine wait for
release() callbacks?, I've cooked up some patches that make
On Mon, 16 Apr 2007, Dmitry Torokhov wrote:
On 4/16/07, Cornelia Huck [EMAIL PROTECTED] wrote:
Hi,
based on the discussion in How should an exit routine wait for
release() callbacks?, I've cooked up some patches that make module
unload wait until the last reference for a kobject has
On 4/16/07, Alan Stern [EMAIL PROTECTED] wrote:
On Mon, 16 Apr 2007, Dmitry Torokhov wrote:
On 4/16/07, Cornelia Huck [EMAIL PROTECTED] wrote:
Hi,
based on the discussion in How should an exit routine wait for
release() callbacks?, I've cooked up some patches that make module
unload
On Mon, Apr 16, 2007 at 03:03:16PM -0400, Dmitry Torokhov wrote:
On 4/16/07, Greg KH [EMAIL PROTECTED] wrote:
On Mon, Apr 16, 2007 at 02:30:17PM -0400, Dmitry Torokhov wrote:
On 4/16/07, Cornelia Huck [EMAIL PROTECTED] wrote:
Hi,
based on the discussion in How should an exit routine
On Mon, Apr 16, 2007 at 03:47:13PM -0400, Dmitry Torokhov wrote:
On 4/16/07, Alan Stern [EMAIL PROTECTED] wrote:
On Mon, 16 Apr 2007, Dmitry Torokhov wrote:
On 4/16/07, Cornelia Huck [EMAIL PROTECTED] wrote:
Hi,
based on the discussion in How should an exit routine wait for
On 4/16/07, Greg KH [EMAIL PROTECTED] wrote:
On Mon, Apr 16, 2007 at 03:47:13PM -0400, Dmitry Torokhov wrote:
On 4/16/07, Alan Stern [EMAIL PROTECTED] wrote:
On Mon, 16 Apr 2007, Dmitry Torokhov wrote:
On 4/16/07, Cornelia Huck [EMAIL PROTECTED] wrote:
Hi,
based on the discussion
On 4/16/07, Greg KH [EMAIL PROTECTED] wrote:
On Mon, Apr 16, 2007 at 03:03:16PM -0400, Dmitry Torokhov wrote:
On 4/16/07, Greg KH [EMAIL PROTECTED] wrote:
On Mon, Apr 16, 2007 at 02:30:17PM -0400, Dmitry Torokhov wrote:
On 4/16/07, Cornelia Huck [EMAIL PROTECTED] wrote:
Hi,
based on
On Mon, Apr 16, 2007 at 03:38:52PM -0400, Alan Stern wrote:
3. Change the module code so that rmmod can return _before_ the
module is actually unloaded from memory (but after the module's
exit routine has completed). This will lead to more problems.
For example, what if
On Mon, 16 Apr 2007, Dmitry Torokhov wrote:
What about 4:
When registering an [k]object increment refcount of module that
provides -release() function.
That would normally require -release function to be placed on
subsystem level to allow unloading individual devices.
On Tue, 2007-04-17 at 00:44 +0400, Alexey Dobriyan wrote:
On Mon, Apr 16, 2007 at 03:38:52PM -0400, Alan Stern wrote:
3. Change the module code so that rmmod can return _before_ the
module is actually unloaded from memory (but after the module's
exit routine has completed).
32 matches
Mail list logo