Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 015A3C43381 for ; Mon, 1 Apr 2019 20:38:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C25172146E for ; Mon, 1 Apr 2019 20:38:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554151116; bh=h4S63rtlCbZAnoS4wEsj2MSvGlWQ2w+heMRIXxPiYDg=; h=Date:From:To:Subject:List-ID:From; b=hXTZk33SmvIxCVlvmb8oExtEP6lu/Ilut2T3FdZjJWW1NkAXnwSWRZXqvw+zn5OmM k8s69474CGN60HjJTIH30L+WYDEh2eQeGLNRNsyOJayYqpj/JgMY+p0yTCpipj/rOM e2mXrIEOPhiQYPFZ8CmKewKm3Ubz9o2ZVN5tIbgY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726827AbfDAUig (ORCPT ); Mon, 1 Apr 2019 16:38:36 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:47320 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726738AbfDAUig (ORCPT ); Mon, 1 Apr 2019 16:38:36 -0400 Received: from localhost.localdomain (c-71-198-47-131.hsd1.ca.comcast.net [71.198.47.131]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 77FCD1BD8; Mon, 1 Apr 2019 20:38:35 +0000 (UTC) Date: Mon, 01 Apr 2019 13:38:34 -0700 From: akpm@linux-foundation.org To: cai@lca.pw, mhocko@suse.com, mm-commits@vger.kernel.org, osalvador@suse.de, stable@vger.kernel.org Subject: [merged] mm-fix-a-wrong-flag-in-set_migratetype_isolate.patch removed from -mm tree Message-ID: <20190401203834.38JR0yc2T%akpm@linux-foundation.org> User-Agent: s-nail v14.8.16 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org The patch titled Subject: mm/page_isolation.c: fix a wrong flag in set_migratetype_isolate() has been removed from the -mm tree. Its filename was mm-fix-a-wrong-flag-in-set_migratetype_isolate.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Qian Cai Subject: mm/page_isolation.c: fix a wrong flag in set_migratetype_isolate() Due to has_unmovable_pages() taking an incorrect irqsave flag instead of the isolation flag in set_migratetype_isolate(), there are issues with HWPOSION and error reporting where dump_page() is not called when there is an unmovable page. Link: http://lkml.kernel.org/r/20190320204941.53731-1-cai@lca.pw Fixes: d381c54760dc ("mm: only report isolation failures when offlining memory") Acked-by: Michal Hocko Reviewed-by: Oscar Salvador Signed-off-by: Qian Cai Cc: [5.0.x] Signed-off-by: Andrew Morton --- mm/page_isolation.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/mm/page_isolation.c~mm-fix-a-wrong-flag-in-set_migratetype_isolate +++ a/mm/page_isolation.c @@ -59,7 +59,8 @@ static int set_migratetype_isolate(struc * FIXME: Now, memory hotplug doesn't call shrink_slab() by itself. * We just check MOVABLE pages. */ - if (!has_unmovable_pages(zone, page, arg.pages_found, migratetype, flags)) + if (!has_unmovable_pages(zone, page, arg.pages_found, migratetype, + isol_flags)) ret = 0; /* _ Patches currently in -mm which might be from cai@lca.pw are mm-compaction-abort-search-if-isolation-fails-v2.patch mm-compaction-fix-an-undefined-behaviour.patch initramfs-cleanup-populate_rootfs-fix.patch