diff --git a/mm/list_lru.c b/mm/list_lru.c index f7d2ffc209fb..8110eb5bf7ce 100644 --- a/mm/list_lru.c +++ b/mm/list_lru.c @@ -188,7 +188,7 @@ unsigned long list_lru_count_one(struct list_lru *lru, rcu_read_lock(); l = list_lru_from_memcg_idx(nlru, memcg_cache_id(memcg)); - count = l->nr_items; + count = READ_ONCE(l->nr_items); rcu_read_unlock(); return count;