]> err.no Git - linux-2.6/commit
sysfs: fix locking in sysfs_lookup() and sysfs_rename_dir()
authorTejun Heo <htejun@gmail.com>
Tue, 31 Jul 2007 10:15:08 +0000 (19:15 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 22 Aug 2007 21:35:34 +0000 (14:35 -0700)
commit6cb52147b254373364a2fef5df8b4aa3739c8bb6
tree423fa52521460ac39169397f637e2d9d9a2c8dab
parent74e8f346d59074147c564d9c1ffd6caf18286516
sysfs: fix locking in sysfs_lookup() and sysfs_rename_dir()

sd children list walking in sysfs_lookup() and sd renaming in
sysfs_rename_dir() were left out during i_mutex -> sysfs_mutex
conversion.  Fix them.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/dir.c