aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/locking/mutex-debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/locking/mutex-debug.h')
-rw-r--r--kernel/locking/mutex-debug.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/locking/mutex-debug.h b/kernel/locking/mutex-debug.h
index 0799fd3e4cfa..372e6530180d 100644
--- a/kernel/locking/mutex-debug.h
+++ b/kernel/locking/mutex-debug.h
@@ -29,12 +29,12 @@ extern void debug_mutex_init(struct mutex *lock, const char *name,
29 29
30static inline void mutex_set_owner(struct mutex *lock) 30static inline void mutex_set_owner(struct mutex *lock)
31{ 31{
32 lock->owner = current; 32 WRITE_ONCE(lock->owner, current);
33} 33}
34 34
35static inline void mutex_clear_owner(struct mutex *lock) 35static inline void mutex_clear_owner(struct mutex *lock)
36{ 36{
37 lock->owner = NULL; 37 WRITE_ONCE(lock->owner, NULL);
38} 38}
39 39
40#define spin_lock_mutex(lock, flags) \ 40#define spin_lock_mutex(lock, flags) \