cvs commit: src/sys/kern kern_lockf.c src/sys/sys lockf.h
Matthew Dillon
dillon at crater.dragonflybsd.org
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
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
More information about the Commits
mailing list