configfs_register_group() shouldn't be (and isn't) called in rmdirable parts
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 30 Aug 2019 03:13:30 +0000 (23:13 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Nov 2019 18:20:46 +0000 (19:20 +0100)
commit65524d647e9d7c185a33701ced4ef0dbf581ea5a
treebcdc5e312d152ef5fe2219ef6b1d813bec08e7f2
parent2bd63490c1ddc72c96c363e1ae828ebed6aa2b86
configfs_register_group() shouldn't be (and isn't) called in rmdirable parts

commit f19e4ed1e1edbfa3c9ccb9fed17759b7d6db24c6 upstream.

revert cc57c07343bd "configfs: fix registered group removal"
It was an attempt to handle something that fundamentally doesn't
work - configfs_register_group() should never be done in a part
of tree that can be rmdir'ed.  And in mainline it never had been,
so let's not borrow trouble; the fix was racy anyway, it would take
a lot more to make that work and desired semantics is not clear.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/configfs/dir.c