• Tejun Heo's avatar
    sysfs: add sysfs_open_file_mutex · c75ec764
    Tejun Heo authored
    Add a separate mutex to protect sysfs_open_dirent->buffers list.  This
    will allow performing sleepable operations while traversing
    sysfs_buffers, which will be renamed to sysfs_open_file.
    
    Note that currently sysfs_open_dirent->buffers list isn't being used
    for anything and this patch doesn't make any functional difference.
    It will be used to merge regular and bin file supports.
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    c75ec764
file.c 19.7 KB