sx: drop spurious volatile keyword

This commit is contained in:
Mateusz Guzik 2020-11-24 03:48:44 +00:00
parent f998d4c7a2
commit 094c148b7a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=367977

View File

@ -573,7 +573,7 @@ _sx_xlock_hard(struct sx *sx, uintptr_t x, int opts LOCK_FILE_LINE_ARG_DEF)
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 LOCK_FILE_LINE_ARG_DEF)
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