OpenAFS CVS Commit: openafs/src/dir by shadow

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Tue, 14 May 2002 18:32:11 EDT


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

Modified Files:
      Tag: openafs-prototypes-1_3_x
	buffer.c 
Log Message:
DELTA PROTO13-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-prototypes-1_3_x follows ---
PROTO13-dir-hold-afs-bufferlock-across-increment-of-buffer-lockers-to-prevent-newslot-from-walking-on-stuff-20020514 openafs/src/dir/buffer.c 1.6 1.6.2.1