Re: [PATCH/RFC] core: add a function to safely try to get device driver owner

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Greg KH
Date: Tuesday, November 30, 2010 - 10:15 am

On Tue, Nov 30, 2010 at 06:09:46PM +0100, Guennadi Liakhovetski wrote:

I agree, it probably would not solve all of the different issues that
people might have for this type of thing, and this isn't the first time
I've heard it be requested either.

But, this patch is just trying to increment a module owner of a device
that is bound to a driver, which is the wrong level to be thinking of
it.

If you request a module to be loaded, what would possibly cause it to be
unbound that you need to have this "safely" in place?  Why would the
module be unloaded?  And if it was unloaded, doesn't that imply that
someone else wanted it unloaded so keeping that from happening would be
a bit rude, right?

Look at network modules, we always allow them to be unloaded, even if
the device is "in use" and that doesn't cause problems.  So why would
you need to do this when we are trying (over the past 10 years or so) to
move away from the "lock the module in place because we know better than
the user" model?

thanks,

greg k-h
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH/RFC] core: add a function to safely try to get devi ..., Guennadi Liakhovetski, (Mon Nov 29, 12:43 pm)
Re: [PATCH/RFC] core: add a function to safely try to get ..., Guennadi Liakhovetski, (Mon Nov 29, 1:11 pm)
Re: [PATCH/RFC] core: add a function to safely try to get ..., Guennadi Liakhovetski, (Mon Nov 29, 1:54 pm)
Re: [PATCH/RFC] core: add a function to safely try to get ..., Guennadi Liakhovetski, (Mon Nov 29, 3:10 pm)
Re: [PATCH/RFC] core: add a function to safely try to get ..., Guennadi Liakhovetski, (Mon Nov 29, 4:11 pm)
Re: [PATCH/RFC] core: add a function to safely try to get ..., Guennadi Liakhovetski, (Tue Nov 30, 12:18 am)
Re: [PATCH/RFC] core: add a function to safely try to get ..., Guennadi Liakhovetski, (Tue Nov 30, 10:09 am)
Re: [PATCH/RFC] core: add a function to safely try to get ..., Greg KH, (Tue Nov 30, 10:15 am)
Re: [PATCH/RFC] core: add a function to safely try to get ..., Laurent Pinchart, (Tue Nov 30, 10:55 am)
Re: [PATCH/RFC] core: add a function to safely try to get ..., Laurent Pinchart, (Tue Nov 30, 1:43 pm)