cvs commit: src/sys/kern kern_lockf.c

Matthew Dillon dillon at crater.dragonflybsd.org
Thu May 11 12:53:07 PDT 2006


dillon      2006/05/11 12:50:29 PDT

DragonFly src repository

  Modified files:
    sys/kern             kern_lockf.c 
  Log:
  Fix three bugs in the last commit and document special cases.  Tighten
  up the count calculation.   The code now passes the /usr/src/test/lockf
  system test.
  
  * F_UNLCK wasn't being handled properly in certain cases, resulting in a
    panic.
  
  * The 'next' pointer was not bring properly adjusted when removing an
    element (brange) other then the current element in the scan, resulting
    in a posix lock error.
  
  * The first and last matches were not always being properly merged with
    the created range, resulting in a positive count panic.
  
  Reported-by: Stefan Krueger <skrueger at xxxxxxxxxxxxxxxx>
  
  Revision  Changes    Path
  1.29      +59 -15    src/sys/kern/kern_lockf.c


http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_lockf.c.diff?r1=1.28&r2=1.29&f=u





More information about the Commits mailing list