Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Aug 2008 01:17:56 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_lockf.c
Message-ID:  <200808220118.m7M1IExR055863@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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