OpenAFS CVS Commit: openafs/src/dir by shadow

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Fri, 07 Jun 2002 20:16:59 EDT


Update of /cvs/openafs/src/dir
In directory GRAND.CENTRAL.ORG:/data/sb/openafs-stable-1.2/openafs/src/dir

Modified Files:
      Tag: openafs-stable-1_2_x
	buffer.c 
Log Message:
DELTA STABLE12-dir-hold-afs-bufferlock-across-increment-of-buffer-lockers-to-prevent-newslot-from-walking-on-stuff-20020514
AUTHOR shadow@dementia.org

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


--- DELTA config for openafs-stable-1_2_x follows ---
STABLE12-dir-hold-afs-bufferlock-across-increment-of-buffer-lockers-to-prevent-newslot-from-walking-on-stuff-20020514 openafs/src/dir/buffer.c 1.5.2.3 1.5.2.4