use CACHE_LINE_SIZE instead of hardcoding 128 for lock pad
pointed out by Marius Nuennerich and jhb@
This commit is contained in:
parent
bc081f5e7d
commit
bf3a24dd0d
@ -568,7 +568,7 @@ static void arc_evict_ghost(arc_state_t *state, spa_t *spa, int64_t bytes);
|
||||
* Hash table routines
|
||||
*/
|
||||
|
||||
#define HT_LOCK_PAD 128
|
||||
#define HT_LOCK_PAD CACHE_LINE_SIZE
|
||||
|
||||
struct ht_lock {
|
||||
kmutex_t ht_lock;
|
||||
|
Loading…
x
Reference in New Issue
Block a user