svn commit: r367977 - head/sys/kern

Mateusz Guzik mjg at FreeBSD.org
Tue Nov 24 03:48:44 UTC 2020


Author: mjg
Date: Tue Nov 24 03:48:44 2020
New Revision: 367977
URL: https://svnweb.freebsd.org/changeset/base/367977

Log:
  sx: drop spurious volatile keyword

Modified:
  head/sys/kern/kern_sx.c

Modified: head/sys/kern/kern_sx.c
==============================================================================
--- head/sys/kern/kern_sx.c	Tue Nov 24 02:51:45 2020	(r367976)
+++ head/sys/kern/kern_sx.c	Tue Nov 24 03:48:44 2020	(r367977)
@@ -573,7 +573,7 @@ _sx_xlock_hard(struct sx *sx, uintptr_t x, int opts LO
 	GIANT_DECLARE;
 	uintptr_t tid, setx;
 #ifdef ADAPTIVE_SX
-	volatile struct thread *owner;
+	struct thread *owner;
 	u_int i, n, spintries = 0;
 	enum { READERS, WRITER } sleep_reason = READERS;
 	bool in_critical = false;
@@ -1020,7 +1020,7 @@ _sx_slock_hard(struct sx *sx, int opts, uintptr_t x LO
 	GIANT_DECLARE;
 	struct thread *td;
 #ifdef ADAPTIVE_SX
-	volatile struct thread *owner;
+	struct thread *owner;
 	u_int i, n, spintries = 0;
 #endif
 #ifdef LOCK_PROFILING


More information about the svn-src-all mailing list