mirror of
https://git.openafs.org/openafs.git
synced 2025-01-22 17:00:15 +00:00
rx: Define afs_kmutex_t for LWP too
afs_kmutex_t is used for lock definitions in the kernel, and in pthreaded builds. LWP doesn't have any equivalent, and all structure members using this type have to be protected with RX_ENABLE_LOCKS, which starts to become untidy. Just make afs_kmutex_t an int for LWP, so that we can simplify our headers, at the expense of some additional storage on LWP builds (which are going away at some point, anyway) Change-Id: Iaa5683bdfd932c78a9a5d35b8a4530cecf5bdb37 Reviewed-on: http://gerrit.openafs.org/5660 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
parent
3f938315ad
commit
5743c96bde
@ -17,8 +17,12 @@
|
|||||||
/* KDUMP_KERNEL is defined when kdump includes this header. */
|
/* KDUMP_KERNEL is defined when kdump includes this header. */
|
||||||
#ifndef KDUMP_KERNEL
|
#ifndef KDUMP_KERNEL
|
||||||
|
|
||||||
|
typedef int afs_kmutex_t;
|
||||||
|
|
||||||
#define CALL_HOLD(call, type)
|
#define CALL_HOLD(call, type)
|
||||||
|
#define CALL_HOLD_R(call, type)
|
||||||
#define CALL_RELE(call, type)
|
#define CALL_RELE(call, type)
|
||||||
|
#define CALL_RELE_R(call, type)
|
||||||
|
|
||||||
#define MUTEX_DESTROY(a)
|
#define MUTEX_DESTROY(a)
|
||||||
#define MUTEX_ENTER(a)
|
#define MUTEX_ENTER(a)
|
||||||
|
Loading…
Reference in New Issue
Block a user