]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
sysfs: implement kobj_sysfs_assoc_lock
authorTejun Heo <htejun@gmail.com>
Wed, 13 Jun 2007 18:45:15 +0000 (03:45 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 Jul 2007 23:09:04 +0000 (16:09 -0700)
commitaecdcedaab49ca40620dc7dd70f67ee7269a66c9
treedf1faa0302e6fb428b7ae0a14d443626fd73b121
parent3e5190380ebef77f2b015c9e7a4ca225a3d75021
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 <htejun@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/dir.c
fs/sysfs/sysfs.h