dir-hold-afs-bufferlock-across-increment-of-buffer-lockers-to-prevent-newslot-from...
authorDerrick Brashear <shadow@dementia.org>
Tue, 14 May 2002 21:21:09 +0000 (21:21 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 14 May 2002 21:21:09 +0000 (21:21 +0000)
commit0eb68f307aac84472a13523a0ce8b7a865f01ac7
treea0cf74b6056cbd761b8cb95cea958aed72adfc8b
parent50473f885f07857d03b963bf43c5b24771b4913b
dir-hold-afs-bufferlock-across-increment-of-buffer-lockers-to-prevent-newslot-from-walking-on-stuff-20020514

liberal debugging code and hammering produced a failure where newslot was
actually walking on another call to newslot because the bufferlock was
being dropped before newslot incremented lockers on the buffer it
was allocating, allowing someone else to come along and also think they
could allocate it.

by holding the bufferlock just a little longer we avoid this
src/dir/buffer.c