]> git.michaelhowe.org Git - packages/o/openafs.git/commit
STABLE12-tbutc-uses-not-thread-safe-status-20020725
authorRainer Toebbicke <rtb@pclella.cern.ch>
Fri, 26 Jul 2002 06:00:27 +0000 (06:00 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 26 Jul 2002 06:00:27 +0000 (06:00 +0000)
commit70e6dc9ae3db879afee3950e7adde41e31e6c5f7
tree41d3fab9c13cb588fd7c70b8c85b56ef566f3904
parentac80d362548f94bce5501e7cfc5dcccdd29b75d4
STABLE12-tbutc-uses-not-thread-safe-status-20020725

"The multithreaded butc (src/tbutc/butc) includes bucoord/status.o, which is
compiled together with the other bucoord stuff without MT_CFLAGS and hence
without AFS_PTHREAD_ENV defined. Alas, it uses ObtainWriteLock and other
macros out of lock.h which *are* sensitive to AFS_PTHREAD_ENV. Consequently,
butc can hang trying to acquire the statusQueueLock when dumping volumes, in
particular if 'backup status' commands are issued frequently.

A proper fix would probably be to push some of those macros out of lock.h and
make them subroutines in lock.c.

A quick fix is ensuring status.c gets recompiled in tbutc/Makefile.in"

(cherry picked from commit fd2cb884e24b5bf48392db4222ee10125014a3ee)
src/tbutc/Makefile.in