git: kernel - add spinlock to syscons console write path
Matthew Dillon
dillon at crater.dragonflybsd.org
Sun Jan 17 18:02:30 PST 2010
commit 82d1ed25dd0260190823a69517b17901d529b14a
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Sun Jan 17 17:23:53 2010 -0800
kernel - add spinlock to syscons console write path
* Add a spinlock in the console write path which is shared with
general console writes (CONS_LOCK is only used for kernel console
writes).
* Fixes MP races between kprintf() and general console writes which
can cause sc->videoio_in_progress to get out of sync, causing
vga consoles to stop generating output.
Summary of changes:
sys/dev/misc/syscons/syscons.c | 83 ++++++++++++++++++++++++++++++----------
sys/dev/misc/syscons/syscons.h | 1 -
2 files changed, 63 insertions(+), 21 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/82d1ed25dd0260190823a69517b17901d529b14a
--
DragonFly BSD source repository
More information about the Commits
mailing list