]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerChristoph Hellwig <hch@lst.de>
Mon, 2 Sep 2019 20:10:44 +0000 (22:10 +0200)
commite7cb0e4f3447bf1931016a630ecf191117373f48
treecac1dc8ff820a50b2c9dfed61bc552a6935edca0
parent0b0f63268b9a8b96b60740b418d28c0ccdab44fc
configfs_register_group() shouldn't be (and isn't) called in rmdirable parts

revert 90c76c3c306a "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>
fs/configfs/dir.c