aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/lock.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2006-04-17 20:17:09 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2006-04-17 20:17:09 +0000
commitefff0b01b60536a98633f99299d08fff9f6d2922 (patch)
treeec5914944092a0e73e714c7e1f3fc25103d52365 /sys/sys/lock.h
parent32553b153e845f1f343ed52e61a4fa33943bd5a2 (diff)
downloadsrc-efff0b01b60536a98633f99299d08fff9f6d2922.tar.gz
src-efff0b01b60536a98633f99299d08fff9f6d2922.zip
Update comments to indicate that locks are held by threads, not processes.
Notes
Notes: svn path=/head/; revision=157824
Diffstat (limited to 'sys/sys/lock.h')
-rw-r--r--sys/sys/lock.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sys/lock.h b/sys/sys/lock.h
index 99a7e5d3f001..b10b54abf2ae 100644
--- a/sys/sys/lock.h
+++ b/sys/sys/lock.h
@@ -106,7 +106,7 @@ struct lock_class {
* Lock instances. A lock instance is the data associated with a lock while
* it is held by witness. For example, a lock instance will hold the
* recursion count of a lock. Lock instances are held in lists. Spin locks
- * are held in a per-cpu list while sleep locks are held in per-process list.
+ * are held in a per-cpu list while sleep locks are held in per-thread list.
*/
struct lock_instance {
struct lock_object *li_lock;
@@ -116,9 +116,9 @@ struct lock_instance {
};
/*
- * A simple list type used to build the list of locks held by a process
+ * A simple list type used to build the list of locks held by a thread
* or CPU. We can't simply embed the list in struct lock_object since a
- * lock may be held by more than one process if it is a shared lock. Locks
+ * lock may be held by more than one thread if it is a shared lock. Locks
* are added to the head of the list, so we fill up each list entry from
* "the back" logically. To ease some of the arithmetic, we actually fill
* in each list entry the normal way (childer[0] then children[1], etc.) but