enable adaptive spinning on zfs locks
This commit is contained in:
parent
ae5a5566ff
commit
8cfacd71f9
@ -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 { \
|
||||
|
@ -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)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user