Re: [PATCH] memcg: mem_cgroup_migrate() may be called with irq disabled
From: Johannes Weiner
Date: Mon Jun 20 2016 - 15:54:14 EST
On Mon, Jun 20, 2016 at 02:41:58PM -0400, Tejun Heo wrote:
> mem_cgroup_migrate() uses local_irq_disable/enable() but can be called
> with irq disabled from migrate_page_copy(). This ends up enabling irq
> while holding a irq context lock triggering the following lockdep
> warning. Fix it by using irq_save/restore instead.
Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>
Fixes: 74485cf2bc85 ("mm: migrate: consolidate mem_cgroup_migrate() calls")
CC: stable@xxxxxxxxxxxxxxx # 4.5