Commit 21566638 authored by J. R. Okajima's avatar J. R. Okajima
Browse files

Merge branch 'aufs5.x-rcN/00base' into aufs5.x-rcN/01modular

parents ad618033 b9cb2788
......@@ -19,6 +19,8 @@
/* to debug easier, do not make them inlined functions */
#define AuRwMustNoWaiters(rw) AuDebugOn(rwsem_is_contended(rw))
#ifdef CONFIG_LOCKDEP
/* rwsem_is_locked() is unusable */
#define AuRwMustReadLock(rw) AuDebugOn(!lockdep_recursing(current) \
&& debug_locks \
......@@ -32,6 +34,12 @@
#define AuRwDestroy(rw) AuDebugOn(!lockdep_recursing(current) \
&& debug_locks \
&& lockdep_is_held(rw))
#else
#define AuRwMustReadLock(rw) do {} while (0)
#define AuRwMustWriteLock(rw) do {} while (0)
#define AuRwMustAnyLock(rw) do {} while (0)
#define AuRwDestroy(rw) do {} while (0)
#endif
#define au_rw_init(rw) init_rwsem(rw)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment