rx: Make CALL_RELE and CALL_HOLD lock refcnt mutex
authorSimon Wilkinson <sxw@your-file-system.com>
Sun, 20 Nov 2011 23:11:53 +0000 (18:11 -0500)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sun, 4 Dec 2011 16:13:15 +0000 (08:13 -0800)
commit57316878e03691f7e320013b21f0c7640877e11e
tree69ab6edb2c987147bda4fc72732d05919cd0ed94
parent1ef8dc3dfbddcbe5610c276afc627c9fcfe30a65
rx: Make CALL_RELE and CALL_HOLD lock refcnt mutex

The reference count mutex must always be held when calling CALL_RELE
or CALL_HOLD. Instead of requiring that the caller obtain, and release
the mutex, do so within the HOLD and RELE macros, greatly simplifying
calling code. Provide CALL_RELE_R and CALL_HOLD_R as versions of these
macros which can be used by callers who already hold the reference
count mutex for other purposes.

Change-Id: Ie3e9df8b9d2a79476f1707bd65e588f43271c636
Reviewed-on: http://gerrit.openafs.org/6219
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
src/rx/rx.c
src/rx/rx_call.h
src/rx/rx_event.c
src/rx/rx_packet.c