[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200214204741.94112-4-jbi.octave@gmail.com>
Date: Fri, 14 Feb 2020 20:47:14 +0000
From: Jules Irenge <jbi.octave@...il.com>
To: linux-kernel@...r.kernel.org
Cc: boqun.feng@...il.com, Jules Irenge <jbi.octave@...il.com>,
Johannes Weiner <hannes@...xchg.org>,
Michal Hocko <mhocko@...nel.org>,
Vladimir Davydov <vdavydov.dev@...il.com>,
Andrew Morton <akpm@...ux-foundation.org>,
cgroups@...r.kernel.org (open list:CONTROL GROUP - MEMORY RESOURCE
CONTROLLER (MEMCG)),
linux-mm@...ck.org (open list:CONTROL GROUP - MEMORY RESOURCE
CONTROLLER (MEMCG))
Subject: [PATCH 03/30] mm/memcontrol: Add missing annotation for unlock_page_lru()
Sparse reports warning at unlock_page_lry()
warning: context imbalance in unlock_page_lru() - unexpected unlock
The root cause is the missing annotation at unlock_page_lru()
Add the missing __releases(&pgdat->lru_lock)
Signed-off-by: Jules Irenge <jbi.octave@...il.com>
---
mm/memcontrol.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 6f6dc8712e39..22ddd557a69b 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -2587,6 +2587,7 @@ static void lock_page_lru(struct page *page, int *isolated)
}
static void unlock_page_lru(struct page *page, int isolated)
+ __releases(&pgdat->lru_lock)
{
pg_data_t *pgdat = page_pgdat(page);
--
2.24.1
Powered by blists - more mailing lists