From: Tejun Heo Date: Wed, 13 Jun 2007 18:45:15 +0000 (+0900) Subject: sysfs: implement kobj_sysfs_assoc_lock X-Git-Tag: v2.6.23-rc1~1107^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aecdcedaab49ca40620dc7dd70f67ee7269a66c9;p=pandora-kernel.git sysfs: implement kobj_sysfs_assoc_lock kobj->dentry can go away anytime unless the user controls when the associated sysfs node is deleted. This patch implements kobj_sysfs_assoc_lock which protects kobj->dentry. This will be used to maintain kobj based API when converting sysfs to use sysfs_dirent tree instead of dentry/kobject. Note that this lock belongs to kobject/driver-model not sysfs. Once sysfs is converted to not use kobject in its interface, this can be removed from sysfs. This is in preparation of object reference simplification. Signed-off-by: Tejun Heo Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed