MINOR: pattern: make the pat_lru_seed read_mostly

This seed is created once at boot and is used in every LRU hash when
caching results. Let's mark it read_mostly.
This commit is contained in:
Willy Tarreau 2021-04-10 17:42:04 +02:00
parent ad6722ea3a
commit 295a89c029

View File

@ -139,7 +139,7 @@ static THREAD_LOCAL struct sample_data static_sample_data;
struct list pattern_reference = LIST_HEAD_INIT(pattern_reference);
static THREAD_LOCAL struct lru64_head *pat_lru_tree;
static unsigned long long pat_lru_seed;
static unsigned long long pat_lru_seed __read_mostly;
/*
*