From: Willy Tarreau Date: Sat, 10 Apr 2021 15:42:04 +0000 (+0200) Subject: MINOR: pattern: make the pat_lru_seed read_mostly X-Git-Tag: v2.4-dev17~151 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=295a89c02948c0d5380305d487258997d55fb34d;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/pattern.c b/src/pattern.c index e6892f62a1..252bd35d1f 100644 --- a/src/pattern.c +++ b/src/pattern.c @@ -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; /* *