Revert "configfs: fix a race in configfs_lookup()"
This reverts commit c709c7ca02
which is
commit c42dd069be8dfc9b2239a5c89e73bbd08ab35de0 upstream.
It causes pixel to not boot properly, so revert for now.
Change-Id: Iabbeae10643a6e81f6c99e04514c22b4ac91831e
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
84ae70e787
commit
5b4fcff944
@ -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