DragonFly commits List (threaded) for 2009-03
DragonFly BSD
DragonFly commits List (threaded) for 2009-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

DragonFly-2.3.0.533.g65905 master sys/dev/virtual/disk vdisk.c sys/platform/vkernel/platform cothread.c


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 31 Mar 2009 20:35:03 -0700 (PDT)

commit 65905e942cb9cbcc7087a8e952104e249aa33281
Author: Matthew Dillon <dillon@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@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]