cvs commit: src/sys/kern kern_timeout.c

Jeff Roberson jeff at FreeBSD.org
Sat Jul 19 05:18:43 UTC 2008


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


More information about the cvs-src mailing list