[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190115135042.qxu2yoy3zs2fs6cy@d104.suse.de>
Date: Tue, 15 Jan 2019 14:50:49 +0100
From: Oscar Salvador <osalvador@...e.de>
To: Michal Hocko <mhocko@...nel.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>, Jan Kara <jack@...e.cz>,
Oscar Salvador <OSalvador@...e.com>,
Anshuman Khandual <anshuman.khandual@....com>,
linux-mm@...ck.org, LKML <linux-kernel@...r.kernel.org>,
Michal Hocko <mhocko@...e.com>
Subject: Re: [PATCH] mm, memory_hotplug: __offline_pages fix wrong locking
On Tue, Jan 15, 2019 at 01:03:07PM +0100, Michal Hocko wrote:
> From: Michal Hocko <mhocko@...e.com>
>
> Jan has noticed that we do double unlock on some failure paths when
> offlining a page range. This is indeed the case when test_pages_in_a_zone
> respp. start_isolate_page_range fail. This was an omission when forward
> porting the debugging patch from an older kernel.
>
> Fix the issue by dropping mem_hotplug_done from the failure condition
> and keeping the single unlock in the catch all failure path.
>
> Reported-by: Jan Kara <jack@...e.cz>
> Fixes: 7960509329c2 ("mm, memory_hotplug: print reason for the offlining failure")
> Signed-off-by: Michal Hocko <mhocko@...e.com>
Uhmf, I overlooked that while reviewing the patch.
Reviewed-by: Oscar Salvador <osalvador@...e.de>
Thanks
--
Oscar Salvador
SUSE L3
Powered by blists - more mailing lists