• Greg Kroah-Hartman's avatar
    [PATCH] back out sysfs reference count change · ab955e9f
    Greg Kroah-Hartman authored
    This backs out Maneesh's sysfs patch that was recently added to the
    kernel.
    
    In its defense, the original patch did solve some fixes that could be
    duplicated on SMP machines, but the side affect of the patch caused lots
    of problems.  Basically it caused kobjects to get their references
    incremented when files that are not present in the kobject are asked for
    (udev can easily trigger this when it looks for files call "dev" in
    directories that do not have that file).  This can cause easy oopses
    when the VFS later ages out those old dentries and the kobject has its
    reference finally released (usually after the module that the kobject
    lived in was removed.)
    
    I will continue to work with Maneesh to try to solve the original bug,
    but for now, this patch needs to be applied.
    ab955e9f
dir.c 3.66 KB