Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Dec 2017 01:59:56 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r327401 - head/sys/kern
Message-ID:  <201712310159.vBV1xuFM056584@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712310159.vBV1xuFM056584>