cvs commit: src/sys/kern kern_lockf.c

John Baldwin jhb at FreeBSD.org
Fri Aug 22 01:18:14 UTC 2008


jhb         2008-08-22 01:17:56 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    sys/kern             kern_lockf.c 
  Log:
  SVN rev 181978 on 2008-08-22 01:17:56Z by jhb
  
  Use sx_sleep() when waiting for a file lock instead of explicitly dropping
  the sx lock and then doing a tsleep() without a timeout.  The tsleep()
  method leads to lost wakeups that can cause processes to hang waiting for
  a lock on an unlocked file.  The lockf code already uses sx_sleep() in
  7.x+.
  
  Revision  Changes    Path
  1.54.2.3  +1 -3      src/sys/kern/kern_lockf.c


More information about the cvs-src mailing list