enable adaptive spinning on zfs locks

This commit is contained in:
kmacy 2009-05-16 23:56:45 +00:00
parent ae5a5566ff
commit 8cfacd71f9
2 changed files with 4 additions and 4 deletions

View File

@ -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 { \

View File

@ -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)))