]> git.michaelhowe.org Git - packages/o/openafs.git/commit
STABLE12-dir-hold-afs-bufferlock-across-increment-of-buffer-lockers-to-prevent-newslo...
authorDerrick Brashear <shadow@dementia.org>
Sat, 8 Jun 2002 01:16:59 +0000 (01:16 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sat, 8 Jun 2002 01:16:59 +0000 (01:16 +0000)
commit4abb7b6d50131f76e2be39626c6b9b4c168491b8
tree4016df482598028600089657b9e981d0be8b6849
parent4d376afd9bf85d335b440f15aa22c7bf05e2a92e
STABLE12-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

(cherry picked from commit 0eb68f307aac84472a13523a0ce8b7a865f01ac7)
src/dir/buffer.c