Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Jul 2008 05:18:29 +0000 (UTC)
From:      Jeff Roberson <jeff@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_timeout.c
Message-ID:  <200807190518.m6J5IgHm024923@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jeff        2008-07-19 05:18:29 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_timeout.c 
  Log:
  SVN rev 180608 on 2008-07-19 05:18:29Z by jeff
  
  Fix a race which could result in some timeout buckets being skipped.
   - When a tick occurs on a cpu, iterate from cs_softticks until ticks.
     The per-cpu tick processing happens asynchronously with the actual
     adjustment of the 'ticks' variable.  Sometimes the results may
     be visible before the local call and sometimes after.  Previously this
     could cause a one tick window where we didn't evaluate the bucket.
   - In softclock fetch curticks before incrementing cc_softticks so we
     don't skip insertions which were made for the current time.
  
  Sponsored by:   Nokia
  
  Revision  Changes    Path
  1.114     +11 -6     src/sys/kern/kern_timeout.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807190518.m6J5IgHm024923>