mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 15:47:01 +02:00
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:
parent
ad6722ea3a
commit
295a89c029
@ -139,7 +139,7 @@ static THREAD_LOCAL struct sample_data static_sample_data;
|
|||||||
struct list pattern_reference = LIST_HEAD_INIT(pattern_reference);
|
struct list pattern_reference = LIST_HEAD_INIT(pattern_reference);
|
||||||
|
|
||||||
static THREAD_LOCAL struct lru64_head *pat_lru_tree;
|
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;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user