diff options
| author | Greg Kroah-Hartman <gregkh@suse.de> | 2005-03-08 17:53:28 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-03-08 17:53:28 -0800 |
| commit | 181dfb4cef2cf62ea71bdc17a52073f6f02d5bfe (patch) | |
| tree | ff12b69d4e826a9ccf9d9382f1506ac60bbf4ccc /include/linux/kobject.h | |
| parent | 199c50aa72e7e04aa63b797996b8ea8e320a6de2 (diff) | |
[PATCH] kset: make ksets have a spinlock, and use that to lock their lists
Do this instead of using the rwsem of a subsys.
Smaller, faster, and I'm trying to get rid of the rwsem in the subsys.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/kobject.h')
| -rw-r--r-- | include/linux/kobject.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kobject.h b/include/linux/kobject.h index dc773d4043e8..765d660d3bea 100644 --- a/include/linux/kobject.h +++ b/include/linux/kobject.h @@ -20,6 +20,7 @@ #include <linux/types.h> #include <linux/list.h> #include <linux/sysfs.h> +#include <linux/spinlock.h> #include <linux/rwsem.h> #include <linux/kref.h> #include <linux/kobject_uevent.h> @@ -102,6 +103,7 @@ struct kset { struct subsystem * subsys; struct kobj_type * ktype; struct list_head list; + spinlock_t list_lock; struct kobject kobj; struct kset_hotplug_ops * hotplug_ops; }; |
