]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - kernel/locking/mutex-debug.h
scsi: ibmvfc: Set READ FCP_XFER_READY DISABLED bit in PRLI
[karo-tx-linux.git] / kernel / locking / mutex-debug.h
index d06ae3bb46c5f9f928cf7123464f49e284ab3ecf..57a871ae3c81a98e324b9ba907ef65f5c4f1cb8c 100644 (file)
@@ -29,12 +29,12 @@ extern void debug_mutex_init(struct mutex *lock, const char *name,
 
 static inline void mutex_set_owner(struct mutex *lock)
 {
-       lock->owner = current;
+       WRITE_ONCE(lock->owner, current);
 }
 
 static inline void mutex_clear_owner(struct mutex *lock)
 {
-       lock->owner = NULL;
+       WRITE_ONCE(lock->owner, NULL);
 }
 
 #define spin_lock_mutex(lock, flags)                   \