rx/rxkad: Move rxkad initialisation into rxkad
authorSimon Wilkinson <sxw@your-file-system.com>
Tue, 5 Jul 2011 08:20:15 +0000 (09:20 +0100)
committerJeffrey Altman <jaltman@openafs.org>
Wed, 7 Sep 2011 00:43:53 +0000 (17:43 -0700)
commit327762071be3806c5d08be0218982c7027754756
tree2f539d5ce32f90876d333dd7b2738e728f7d61a5
parentca0f1946a2f0a75be7de6aa0ac083ffebc950624
rx/rxkad: Move rxkad initialisation into rxkad

When the RX pthread conversion was done, the initialisation of rxkad
mutexes was incorporated into the rx library itself. This is a layering
violation (it breaks the relatively clean security object abstraction),
and means that you can't actually use RX without the rxkad library.

So, remove all of this initialisation from RX. As security libraries
don't have an explicit initialisation function, we setup our various
mutexes using a pthread_once function called from the NewSecurityObject
functions.

This has the added bonus that it removes the final error in rx.c for
pthread builds, and so another bit of warning suppression can be
removed.

Change-Id: I3cf9b2404a03fb58534c5f41afd77aa5ba5e2256
Reviewed-on: http://gerrit.openafs.org/5361
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
README.WARNINGS
src/libafsrpc/Makefile.in
src/rx/rx.c
src/rxkad/rxkad_client.c
src/rxkad/rxkad_common.c
src/rxkad/rxkad_prototypes.h
src/rxkad/rxkad_server.c
src/rxkad/stats.h
src/shlibafsrpc/Makefile.in