cvs commit: src/sys/kern kern_condvar.c kern_synch.c

John Baldwin jhb at FreeBSD.org
Tue May 8 21:50:00 UTC 2007


jhb         2007-05-08 21:49:59 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_condvar.c kern_synch.c 
  Log:
  Fix a potential LOR with sx_sleep() and cv_wait() with sx locks by
  1) adding the thread to the sleepq via sleepq_add() before dropping the
  lock, and 2) dropping the sleepq lock around calls to lc_unlock() for
  sleepable locks (i.e. locks that use sleepq's in their implementation).
  
  Revision  Changes    Path
  1.61      +25 -5     src/sys/kern/kern_condvar.c
  1.294     +7 -1      src/sys/kern/kern_synch.c


More information about the cvs-src mailing list