From: Tejun Heo Date: Wed, 13 Jun 2007 19:27:23 +0000 (+0900) Subject: sysfs: use sysfs_mutex to protect the sysfs_dirent tree X-Git-Tag: v2.6.23-rc1~1107^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3007e997de91ec59af39a3f9c91595b31ae6e08b;p=pandora-kernel.git sysfs: use sysfs_mutex to protect the sysfs_dirent tree As kobj sysfs dentries and inodes are gonna be made reclaimable, i_mutex can't be used to protect sysfs_dirent tree. Use sysfs_mutex globally instead. As the whole tree is protected with sysfs_mutex, there is no reason to keep sysfs_rename_sem. Drop it. While at it, add docbook comments to functions which require sysfs_mutex locking. Signed-off-by: Tejun Heo Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed