mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 00:04:15 +08:00
Revert "configfs: fix a race in configfs_lookup()"
This reverts commitc709c7ca02
which is commitc42dd069be
upstream. It was backported incorrectly, and will come back later in a way that actually works. Cc: Sishuai Gong <sishuai@purdue.edu> Cc: Christoph Hellwig <hch@lst.de> Cc: Kyle Zeng <zengyhkyle@gmail.com> Reported-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/27f978f3-11ca-6054-5160-ab66d4c918bc@roeck-us.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5452d1be67
commit
2cc1f49862
@ -479,7 +479,6 @@ static struct dentry * configfs_lookup(struct inode *dir,
|
||||
if (!configfs_dirent_is_ready(parent_sd))
|
||||
goto out;
|
||||
|
||||
spin_lock(&configfs_dirent_lock);
|
||||
list_for_each_entry(sd, &parent_sd->s_children, s_sibling) {
|
||||
if (sd->s_type & CONFIGFS_NOT_PINNED) {
|
||||
const unsigned char * name = configfs_get_name(sd);
|
||||
@ -492,7 +491,6 @@ static struct dentry * configfs_lookup(struct inode *dir,
|
||||
break;
|
||||
}
|
||||
}
|
||||
spin_unlock(&configfs_dirent_lock);
|
||||
|
||||
if (!found) {
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user