Author: mjg
Date: Sun Dec 31 01:59:56 2017
New Revision: 327401
URL: https://svnweb.freebsd.org/changeset/base/327401

Log:
  sx: fix up non-smp compilation after r327397

Modified:
  head/sys/kern/kern_sx.c

Modified: head/sys/kern/kern_sx.c
==============================================================================
--- head/sys/kern/kern_sx.c     Sun Dec 31 00:55:00 2017        (r327400)
+++ head/sys/kern/kern_sx.c     Sun Dec 31 01:59:56 2017        (r327401)
@@ -675,8 +675,8 @@ _sx_xlock_hard(struct sx *sx, uintptr_t x, int opts LO
                                continue;
                        sleep_reason = 2;
                }
-#endif
 sleepq:
+#endif
                sleepq_lock(&sx->lock_object);
                x = SX_READ_VALUE(sx);
 retry_sleepq:
@@ -1000,9 +1000,9 @@ _sx_slock_hard(struct sx *sx, int opts, uintptr_t x LO
                            sched_tdname(curthread), "running");
                        continue;
                }
+sleepq:
 #endif
 
-sleepq:
                /*
                 * Some other thread already has an exclusive lock, so
                 * start the process of blocking.
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to