DragonFly-2.3.0.533.g65905 master sys/dev/virtual/disk vdisk.c sys/platform/vkernel/platform cothread.c
Matthew Dillon
dillon at crater.dragonflybsd.org
Tue Mar 31 20:35:47 PDT 2009
commit 65905e942cb9cbcc7087a8e952104e249aa33281
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Tue Mar 31 20:32:22 2009 -0700
vkernel: Fix startup race with I/O cothread support.
The cothread interlocks using pthread calls but there is a small window
of opportunity where a cpu thread can signal the cothread before the
cothread has managed to interlock its first wait. Moving the wait from the
top of the loop to the bottom fixes the problem.
Reported-by: Joe Talbott <josepht at cstone.net>
Summary of changes:
sys/dev/virtual/disk/vdisk.c | 5 ++++-
sys/platform/vkernel/platform/cothread.c | 4 +++-
2 files changed, 7 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/65905e942cb9cbcc7087a8e952104e249aa33281
--
DragonFly BSD source repository
More information about the Commits
mailing list