cvs commit: src/sys/kern lwkt_token.c

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Sep 12 14:49:59 PDT 2005


dillon      2005/09/12 14:48:22 PDT

DragonFly src repository

  Modified files:
    sys/kern             lwkt_token.c 
  Log:
  Fix a token bug.  A preempting interrupt thread blocking on a token cannot
  safely call lwkt_drain_token_requests() because the procedure may give away
  tokens owned by the preempted (parent) thread.  Instead we simply call
  lwkt_yield() to turn ourselves into a normally scheduled thread and return.
  
  Reported-by: Peter Avalos <pavalos at xxxxxxxxxxxx>
  
  Revision  Changes    Path
  1.23      +29 -15    src/sys/kern/lwkt_token.c


http://www.dragonflybsd.org/cvsweb/src/sys/kern/lwkt_token.c.diff?r1=1.22&r2=1.23&f=u





More information about the Commits mailing list