]> git.baikalelectronics.ru Git - kernel.git/commit
sysfs: consolidate sysfs spinlocks
authorTejun Heo <htejun@gmail.com>
Wed, 13 Jun 2007 19:27:23 +0000 (04:27 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 Jul 2007 23:09:08 +0000 (16:09 -0700)
commite6c7a2832d2913dba2f50993f068fa11a23a9260
tree962bbe5fe2483876caa74943875cbef432db6945
parente1bd1ee1157cf356d6192854f9a44964d2c7a0f3
sysfs: consolidate sysfs spinlocks

Replace sysfs_lock and kobj_sysfs_assoc_lock with sysfs_assoc_lock.
sysfs_lock was originally to be used to protect sysfs_dirent tree but
mutex seems better choice, so there is no reason to keep sysfs_lock
separate.  Merge the two spinlocks into one.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/dir.c
fs/sysfs/inode.c
fs/sysfs/symlink.c
fs/sysfs/sysfs.h