Messages in this thread | | | Date | Wed, 1 Dec 2021 13:25:51 -1000 | From | Tejun Heo <> | Subject | Re: [PATCH] kernfs: prevent early freeing of root node |
| |
On Wed, Dec 01, 2021 at 03:16:48PM -0800, Minchan Kim wrote: ... > Since kernfs moves the kernfs_rwsem lock into root, it couldn't hold > the lock when the root node is tearing down. Thus, get the refcount > of root node. > > Tested-by: Marek Szyprowski <m.szyprowski@samsung.com> > Reported-by: Marek Szyprowski <m.szyprowski@samsung.com> > Signed-off-by: Minchan Kim <minchan@kernel.org>
Acked-by: Tejun Heo <tj@kernel.org>
Thanks.
-- tejun
| |