Message ID | 20190104125011.16071-8-mgorman@techsingularity.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 58B4714E5 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 4 Jan 2019 12:51:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 48B5D27F86 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 4 Jan 2019 12:51:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3AA6E283A5; Fri, 4 Jan 2019 12:51:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BCC3627F86 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 4 Jan 2019 12:51:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 003768E00D9; Fri, 4 Jan 2019 07:51:36 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id EF58B8E00AE; Fri, 4 Jan 2019 07:51:35 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D715E8E00D9; Fri, 4 Jan 2019 07:51:35 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by kanga.kvack.org (Postfix) with ESMTP id 752B58E00AE for <linux-mm@kvack.org>; Fri, 4 Jan 2019 07:51:35 -0500 (EST) Received: by mail-ed1-f72.google.com with SMTP id c3so35318604eda.3 for <linux-mm@kvack.org>; Fri, 04 Jan 2019 04:51:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references; bh=XBlzRH1OJ1qmwM1YNbF8hp3yWzEPL2hB+0PZirnJ9oQ=; b=FZ/yIkYFxPzqJTaj2LvN3TaiUQ5Cml/H1aVZ5t7aIRu0i3NE3FXqRzXIhigtTUvDfd CV3T8c/7MRGMp5cOxNhp9RIO8aLuLfb1tJH25892UNwskBhghmN6qT0tJ85tx8HtJyXS 3yvQyE3hvxhk3a8/CNOZMFtlPVkK7I724qnF3bO0zqMFo/PiqMyTXx6lIz85BzRqioQh 0QrE3Qaz1HOaldghwj02Qy7Neq6eeyF2L9Ybg9f5JsPnKTObaFYkUmA0nIhX2N7ofDlk LYvxmC0NVGPDZOYj4BxEmpundEzjO3XnPDzlau6zTCBvXCJMg091V97VJIgRGCuaP4YO KmSQ== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of mgorman@techsingularity.net designates 81.17.249.8 as permitted sender) smtp.mailfrom=mgorman@techsingularity.net X-Gm-Message-State: AA+aEWb5s6p5kaGw4+vceRFovT+nsB1IvG0BSCugzveVPJAj/78UOzYA cmKEdK4UT/WRwXlNmOzgbr71glt/2eBBPxWMt3lRqEJ8u5X1lyuyZL8PcLck6ECZD9t3pnXO7Aj 9OqiZ5k/C4YoZ8OBUHrdejDKRb7erbwCf+LW3MMl5oOiEcsgTYEsMka7MS9N+ZpQshg== X-Received: by 2002:a17:906:138d:: with SMTP id f13-v6mr38462435ejc.176.1546606294948; Fri, 04 Jan 2019 04:51:34 -0800 (PST) X-Google-Smtp-Source: AFSGD/UIQtssVLI+tIxn9jEZaycHhY3qMckHRHIystWzjuD0SD9yCgzwt/dg723+uzUMwfu8f1yl X-Received: by 2002:a17:906:138d:: with SMTP id f13-v6mr38462402ejc.176.1546606293904; Fri, 04 Jan 2019 04:51:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546606293; cv=none; d=google.com; s=arc-20160816; b=YNNnTJX5y8Wb2fDJGkTXUNk3lzqG1nWdzmb9RgdTe7CBtr7JCm7Z5VPFC6IkyqY2RX CAmOAEJLdrebK3iCfyGmEm3IxzaxrdKgep6ydnTMyInI4ZzOWMhttvgY7VuV0h83myWe y7yJLONzNI3pS9+ZLSpkHZKX7j4lCJNR/ooku2MyHoYU/qc45yfyIpuumXzSWXH9/1QO cgvzYL0m1XgHlwl+oEVghFuE4kCYjbhNj8OeqF/OZUjYaWwhyP+O6K22pnaIUpTfbBaB fVsmLGBFTunH18fKG2nMcSIWQDMLv6VwjaZRlvngaYWme9Vzc94EQYPyI7/c2Xo+N3jW cFKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from; bh=XBlzRH1OJ1qmwM1YNbF8hp3yWzEPL2hB+0PZirnJ9oQ=; b=GyiyJMfAbE5StGGKuQNgsprNj58S3tgms7+h4dlKFJD+YFlYPCcvI/2Jqe+AHpLd6o 7kE2XcVIoTI0ElZ9IjPBi1U8Mwg+zUjfN84QsgQjJ60dPs+AMUxHhHy0oytsd8uxFtAR fm4gqlvuFTB83k66enuBTBKZVcKMs6yJNn23qAV/wG19sPilFwNuRgUZ0U8bkJVsNcUR JHrunCLjWLhtZ5SeYRISpWC0eaWjKSvg8izTm3+KK5UT1o3XTvsnZJS8tVJSl8oUYeAm CCJK7gBTlNbhxrLSZUU6qafG1dCjUKeGrLZT+dbcUtRk/VgEAySyMFEKP0jrVISBPm5k Mk4w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of mgorman@techsingularity.net designates 81.17.249.8 as permitted sender) smtp.mailfrom=mgorman@techsingularity.net Received: from outbound-smtp02.blacknight.com (outbound-smtp02.blacknight.com. [81.17.249.8]) by mx.google.com with ESMTPS id r24si203929edp.187.2019.01.04.04.51.33 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Jan 2019 04:51:33 -0800 (PST) Received-SPF: pass (google.com: domain of mgorman@techsingularity.net designates 81.17.249.8 as permitted sender) client-ip=81.17.249.8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of mgorman@techsingularity.net designates 81.17.249.8 as permitted sender) smtp.mailfrom=mgorman@techsingularity.net Received: from mail.blacknight.com (pemlinmail03.blacknight.ie [81.17.254.16]) by outbound-smtp02.blacknight.com (Postfix) with ESMTPS id 94DED98837 for <linux-mm@kvack.org>; Fri, 4 Jan 2019 12:51:33 +0000 (UTC) Received: (qmail 613 invoked from network); 4 Jan 2019 12:51:33 -0000 Received: from unknown (HELO stampy.163woodhaven.lan) (mgorman@techsingularity.net@[37.228.229.96]) by 81.17.254.9 with ESMTPA; 4 Jan 2019 12:51:33 -0000 From: Mel Gorman <mgorman@techsingularity.net> To: Linux-MM <linux-mm@kvack.org> Cc: David Rientjes <rientjes@google.com>, Andrea Arcangeli <aarcange@redhat.com>, Vlastimil Babka <vbabka@suse.cz>, ying.huang@intel.com, kirill@shutemov.name, Andrew Morton <akpm@linux-foundation.org>, Linux List Kernel Mailing <linux-kernel@vger.kernel.org>, Mel Gorman <mgorman@techsingularity.net> Subject: [PATCH 07/25] mm, migrate: Immediately fail migration of a page with no migration handler Date: Fri, 4 Jan 2019 12:49:53 +0000 Message-Id: <20190104125011.16071-8-mgorman@techsingularity.net> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20190104125011.16071-1-mgorman@techsingularity.net> References: <20190104125011.16071-1-mgorman@techsingularity.net> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Increase success rates and reduce latency of compaction v2
|
expand
|
diff --git a/mm/migrate.c b/mm/migrate.c index 5d1839a9148d..547cc1f3f3bb 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -916,7 +916,7 @@ static int fallback_migrate_page(struct address_space *mapping, */ if (page_has_private(page) && !try_to_release_page(page, GFP_KERNEL)) - return -EAGAIN; + return mode == MIGRATE_SYNC ? -EAGAIN : -EBUSY; return migrate_page(mapping, newpage, page, mode); }