cvs commit: src/sys/kern kern_lockf.c src/sys/sys lockf.h

Matthew Dillon dillon at
Sun May 7 17:39:28 PDT 2006

dillon      2006/05/07 17:38:59 PDT

DragonFly src repository

  Modified files:
    sys/kern             kern_lockf.c 
    sys/sys              lockf.h 
  Rewrite the POSIX locking code.  It was becomming impossible to track
  down bugs in the previous version due to code complexity (in particular
  a large number of undocumented short cuts and gotos), and general lack of
  The new code uses a more straightforward method for managing the lock list
  and is far better documented.  Basically the conflict space is ranged,
  if no conflict occurs the new lock is inserted, overlaps are clipped or
  removed, and finally a quick optimization to check for and collapse
  compatible adjacent locks.
  Revision  Changes    Path
  1.28      +318 -361  src/sys/kern/kern_lockf.c
  1.8       +4 -2      src/sys/sys/lockf.h

More information about the Commits mailing list