]> err.no Git - linux-2.6/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)
commit5f9953237f684ea1778adb9d26162da00b282225
tree962bbe5fe2483876caa74943875cbef432db6945
parent608e266a2d4e62c1b98c1c573064b6afe8c06a58
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