Re: [PATCH] component: try_module_get() to prevent unloading while in use

2022-07-28 Thread Greg KH
On Thu, Jul 28, 2022 at 11:49:57AM +0100, Richard Fitzgerald wrote: > On 26/07/2022 18:28, Greg KH wrote: > > On Tue, Jul 26, 2022 at 11:32:28AM +0100, Richard Fitzgerald wrote: > > > On 25/07/2022 19:09, Greg KH wrote: > > > > On Mon, Jul 25, 2022 at 05:08:59PM +0100, Richard Fitzgerald wrote: > >

Re: [PATCH] component: try_module_get() to prevent unloading while in use

2022-07-26 Thread Greg KH
On Tue, Jul 26, 2022 at 11:32:28AM +0100, Richard Fitzgerald wrote: > On 25/07/2022 19:09, Greg KH wrote: > > On Mon, Jul 25, 2022 at 05:08:59PM +0100, Richard Fitzgerald wrote: > > > Call try_module_get() on a component before attempting to call its > > > bind() function, to ensure that a loadable

Re: [PATCH] component: try_module_get() to prevent unloading while in use

2022-07-25 Thread Greg KH
On Mon, Jul 25, 2022 at 05:08:59PM +0100, Richard Fitzgerald wrote: > Call try_module_get() on a component before attempting to call its > bind() function, to ensure that a loadable module cannot be > unloaded while we are executing its bind(). How can bind be called while the module is unloaded?