Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Aufs5 Standalone
Commits
b61ab560
Commit
b61ab560
authored
Jan 09, 2021
by
J. R. Okajima
Browse files
Merge branch 'aufs5.x-rcN/30stdalone' into aufs5.x-rcN/39public
parents
8e11b3b7
6f8c79db
Changes
1
Hide whitespace changes
Inline
Side-by-side
fs/aufs/rwsem.h
View file @
b61ab560
...
...
@@ -32,6 +32,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 \
...
...
@@ -45,6 +47,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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment