Re: [PATCH v0] kernfs: Skip kernfs_put of parent from child node

2019-04-08 Thread Gaurav Kohli
On 4/5/2019 6:01 PM, Mukesh Ojha wrote: On 4/5/2019 5:40 PM, Greg KH wrote: On Fri, Apr 05, 2019 at 05:13:00PM +0530, Gaurav Kohli wrote: On 4/5/2019 5:03 PM, Greg KH wrote: On Fri, Apr 05, 2019 at 04:51:07PM +0530, Gaurav Kohli wrote: While adding kernfs node for child to the parent

Re: [PATCH v0] kernfs: Skip kernfs_put of parent from child node

2019-04-05 Thread Mukesh Ojha
On 4/5/2019 5:40 PM, Greg KH wrote: On Fri, Apr 05, 2019 at 05:13:00PM +0530, Gaurav Kohli wrote: On 4/5/2019 5:03 PM, Greg KH wrote: On Fri, Apr 05, 2019 at 04:51:07PM +0530, Gaurav Kohli wrote: While adding kernfs node for child to the parent kernfs node and when child node founds that

Re: [PATCH v0] kernfs: Skip kernfs_put of parent from child node

2019-04-05 Thread Greg KH
On Fri, Apr 05, 2019 at 05:13:00PM +0530, Gaurav Kohli wrote: > > On 4/5/2019 5:03 PM, Greg KH wrote: > > On Fri, Apr 05, 2019 at 04:51:07PM +0530, Gaurav Kohli wrote: > > > While adding kernfs node for child to the parent kernfs > > > node and when child node founds that parent kn count is > > >

Re: [PATCH v0] kernfs: Skip kernfs_put of parent from child node

2019-04-05 Thread Gaurav Kohli
On 4/5/2019 5:03 PM, Greg KH wrote: On Fri, Apr 05, 2019 at 04:51:07PM +0530, Gaurav Kohli wrote: While adding kernfs node for child to the parent kernfs node and when child node founds that parent kn count is zero, then below comes like: WARNING: fs/kernfs/dir.c:494 kernfs_get+0x64/0x88

Re: [PATCH v0] kernfs: Skip kernfs_put of parent from child node

2019-04-05 Thread Greg KH
On Fri, Apr 05, 2019 at 04:51:07PM +0530, Gaurav Kohli wrote: > While adding kernfs node for child to the parent kernfs > node and when child node founds that parent kn count is > zero, then below comes like: > > WARNING: fs/kernfs/dir.c:494 kernfs_get+0x64/0x88 > > This indicates that parent is

[PATCH v0] kernfs: Skip kernfs_put of parent from child node

2019-04-05 Thread Gaurav Kohli
While adding kernfs node for child to the parent kernfs node and when child node founds that parent kn count is zero, then below comes like: WARNING: fs/kernfs/dir.c:494 kernfs_get+0x64/0x88 This indicates that parent is in kernfs_put path/ or already freed, and if the child node keeps continue