DragonFly BSD
DragonFly commits List (threaded) for 2006-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 7 May 2006 17:38:59 -0700 (PDT)

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

DragonFly src repository

  Modified files:
    sys/kern             kern_lockf.c 
    sys/sys              lockf.h 
  Log:
  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
  documentation.
  
  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


http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_lockf.c.diff?r1=1.27&r2=1.28&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/sys/lockf.h.diff?r1=1.7&r2=1.8&f=u



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]