Subject: CVS commit: syssrc
To: None <firstname.lastname@example.org>
From: Bill Sommerfeld <email@example.com>
Date: 02/09/2000 08:46:12
Module Name: syssrc
Committed By: sommerfeld
Date: Wed Feb 9 16:46:11 UTC 2000
Three MULTIPROCESSOR + LOCKDEBUG fixes:
1) fix typo preventing compilation (missing comma).
2) in SLOCK_WHERE, display cpu number in the MP case.
3) the folowing race condition was observed in _simple_lock:
cpu 1 releases lock,
cpu 0 grabs lock
cpu 1 sees it's already locked.
cpu 1 sees that lock_holder== "cpu 1"
cpu 1 assumes that it already holds it and barfs.
cpu 0 sets lock_holder == "cpu 0"
Fix: set lock_holder to LK_NOCPU in _simple_unlock().
To generate a diff of this commit:
cvs rdiff -r1.25 -r1.26 syssrc/sys/kern/kern_lock.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.