Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 May 2009 23:56:45 +0000 (UTC)
From:      Kip Macy <kmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r192234 - head/sys/cddl/compat/opensolaris/sys
Message-ID:  <200905162356.n4GNujDB007965@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kmacy
Date: Sat May 16 23:56:45 2009
New Revision: 192234
URL: http://svn.freebsd.org/changeset/base/192234

Log:
  enable adaptive spinning on zfs locks

Modified:
  head/sys/cddl/compat/opensolaris/sys/mutex.h
  head/sys/cddl/compat/opensolaris/sys/rwlock.h

Modified: head/sys/cddl/compat/opensolaris/sys/mutex.h
==============================================================================
--- head/sys/cddl/compat/opensolaris/sys/mutex.h	Sat May 16 23:33:07 2009	(r192233)
+++ head/sys/cddl/compat/opensolaris/sys/mutex.h	Sat May 16 23:56:45 2009	(r192234)
@@ -47,9 +47,9 @@ typedef enum {
 typedef struct sx	kmutex_t;
 
 #ifndef DEBUG
-#define	MUTEX_FLAGS	(SX_DUPOK | SX_NOWITNESS)
+#define	MUTEX_FLAGS	(SX_DUPOK | SX_NOWITNESS | SX_ADAPTIVESPIN)
 #else
-#define	MUTEX_FLAGS	(SX_DUPOK)
+#define	MUTEX_FLAGS	(SX_DUPOK | SX_ADAPTIVESPIN)
 #endif
 
 #define	mutex_init(lock, desc, type, arg)	do {			\

Modified: head/sys/cddl/compat/opensolaris/sys/rwlock.h
==============================================================================
--- head/sys/cddl/compat/opensolaris/sys/rwlock.h	Sat May 16 23:33:07 2009	(r192233)
+++ head/sys/cddl/compat/opensolaris/sys/rwlock.h	Sat May 16 23:56:45 2009	(r192234)
@@ -49,9 +49,9 @@ typedef enum {
 typedef	struct sx	krwlock_t;
 
 #ifndef DEBUG
-#define	RW_FLAGS	(SX_DUPOK | SX_NOWITNESS)
+#define	RW_FLAGS	(SX_DUPOK | SX_NOWITNESS | SX_ADAPTIVESPIN)
 #else
-#define	RW_FLAGS	(SX_DUPOK)
+#define	RW_FLAGS	(SX_DUPOK | SX_ADAPTIVESPIN)
 #endif
 
 #define	RW_READ_HELD(x)		(rw_read_held((x)))



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