diff --git a/mm/memcontrol.c b/mm/memcontrol.c index f3803462a7e63d83061679955b3d2cfb2ca6a71f..0093bc36c5fc7694214a8fddc02bdeb6382c7a99 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -2225,6 +2225,7 @@ void mem_cgroup_update_page_stat(struct page *page, if (mem_cgroup_disabled()) return; + VM_BUG_ON(!rcu_read_lock_held()); memcg = pc->mem_cgroup; if (unlikely(!memcg || !PageCgroupUsed(pc))) return;