]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sysfs: add sysfs_open_file_mutex
authorTejun Heo <tj@kernel.org>
Tue, 1 Oct 2013 21:41:58 +0000 (17:41 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 6 Oct 2013 00:15:48 +0000 (17:15 -0700)
commitc75ec764cf4746a2406278ffa16f590c5db290a7
treee1d8787906ed20dce25ce1f119c95382d6cdf21e
parent375b611e60f7c1ce6913417ca254efe5523f1a72
sysfs: add sysfs_open_file_mutex

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: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/sysfs/file.c