Re: [PATCH 01/12] kernfs: add function to find kernfs_node without increasing ref counter

2018-11-13 Thread Greg Kroah-Hartman
On Tue, Nov 13, 2018 at 06:53:59PM +0100, Paolo Valente wrote: > > > > Il giorno 12 nov 2018, alle ore 13:28, Greg Kroah-Hartman > > ha scritto: > > > > On Mon, Nov 12, 2018 at 10:56:21AM +0100, Paolo Valente wrote: > >> From: Angelo Ruocco > >> > >> The kernfs pseudo file system doesn't exp

Re: [PATCH 01/12] kernfs: add function to find kernfs_node without increasing ref counter

2018-11-13 Thread Paolo Valente
> Il giorno 12 nov 2018, alle ore 13:28, Greg Kroah-Hartman > ha scritto: > > On Mon, Nov 12, 2018 at 10:56:21AM +0100, Paolo Valente wrote: >> From: Angelo Ruocco >> >> The kernfs pseudo file system doesn't export any function to only find >> a node by name, without also getting a referenc

Re: [PATCH 01/12] kernfs: add function to find kernfs_node without increasing ref counter

2018-11-12 Thread Matthew Wilcox
On Mon, Nov 12, 2018 at 04:28:40AM -0800, Greg Kroah-Hartman wrote: > On Mon, Nov 12, 2018 at 10:56:21AM +0100, Paolo Valente wrote: > > From: Angelo Ruocco > > > > The kernfs pseudo file system doesn't export any function to only find > > a node by name, without also getting a reference on it. >

Re: [PATCH 01/12] kernfs: add function to find kernfs_node without increasing ref counter

2018-11-12 Thread Greg Kroah-Hartman
On Mon, Nov 12, 2018 at 10:56:21AM +0100, Paolo Valente wrote: > From: Angelo Ruocco > > The kernfs pseudo file system doesn't export any function to only find > a node by name, without also getting a reference on it. > But in some cases it is useful to just locate a kernfs node, while > using it

[PATCH 01/12] kernfs: add function to find kernfs_node without increasing ref counter

2018-11-12 Thread Paolo Valente
From: Angelo Ruocco The kernfs pseudo file system doesn't export any function to only find a node by name, without also getting a reference on it. But in some cases it is useful to just locate a kernfs node, while using it or not depends on some other condition. This commit adds a function to ju