mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
Revert "kernfs, sysfs, driver-core: implement kernfs_remove_self() and its wrappers"
This reverts commit 1ae06819c7.
Tejun writes:
I'm sorry but can you please revert the whole series?
get_active() waiting while a node is deactivated has potential
to lead to deadlock and that deactivate/reactivate interface is
something fundamentally flawed and that cgroup will have to work
with the remove_self() like everybody else. IOW, I think the
first posting was correct.
Cc: Tejun Heo <[email protected]>
Cc: Alan Stern <[email protected]>
Cc: kbuild test robot <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
8634c422c1
commit
a9f138b0e5
6 changed files with 0 additions and 127 deletions
|
|
@ -372,29 +372,6 @@ void sysfs_remove_file_ns(struct kobject *kobj, const struct attribute *attr,
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(sysfs_remove_file_ns);
|
||||
|
||||
/**
|
||||
* sysfs_remove_file_self - remove an object attribute from its own method
|
||||
* @kobj: object we're acting for
|
||||
* @attr: attribute descriptor
|
||||
*
|
||||
* See kernfs_remove_self() for details.
|
||||
*/
|
||||
bool sysfs_remove_file_self(struct kobject *kobj, const struct attribute *attr)
|
||||
{
|
||||
struct kernfs_node *parent = kobj->sd;
|
||||
struct kernfs_node *kn;
|
||||
bool ret;
|
||||
|
||||
kn = kernfs_find_and_get(parent, attr->name);
|
||||
if (WARN_ON_ONCE(!kn))
|
||||
return false;
|
||||
|
||||
ret = kernfs_remove_self(kn);
|
||||
|
||||
kernfs_put(kn);
|
||||
return ret;
|
||||
}
|
||||
|
||||
void sysfs_remove_files(struct kobject *kobj, const struct attribute **ptr)
|
||||
{
|
||||
int i;
|
||||
|
|
|
|||
Loading…
Reference in a new issue