Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp55045pxp; Fri, 4 Mar 2022 21:15:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJxytOeSq9lbdThIvBFNlTAK1P12iMzM7f+GwCfsbt/1L6F/PWRZOGO3Rwi1uOLlLgL0Pbzo X-Received: by 2002:a17:907:961b:b0:6d9:acb0:5403 with SMTP id gb27-20020a170907961b00b006d9acb05403mr1571671ejc.568.1646457327587; Fri, 04 Mar 2022 21:15:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646457327; cv=none; d=google.com; s=arc-20160816; b=tgNKY++O2/AqEiAJEJnn6/W6SKMcNQGeoxDLGkUKfR6MMuitrZK0bqRKtCsx+hibUp SErSLS0sJvVsAjiYoK7ja3LlxbXySNdJ+Aq4OiwjjoXC0BNbS5Gfjd4OvuZCbBz7os8+ ggVUCnWigDex4QbI9a9gV/c3ncwe+8r9T25U6h1bVrHcZz3f76gQqsUfrPBOvJZA0tGV VI68eeI3K9ryZOqr47uqpZ/KisnFDrweLitHVYsPOeH+PxrGvweXSzLMplGm+i98MzYy qolfYiR170fgIHbuFLecjw8G9mEVeWrxFww+OnIh5EnLYImnLWZQ2C/dlAMMr5Mo2jJ6 CGJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=KaK+5lr9aY7CpYlBgNyNImsYowzjeltr1NfPXrT3b98=; b=M6cuedhVGX/GMCRgO31+tlh2TjxgIsiB6Lu0xYdV+vcCs6tvtpJvTJxUKTLwXrfeZL Xk0cXcvmEM5H8Dyc/fo6pBRMGEQC+QeEF2PLTz0Wq03OzMC3oQYuDUg3z0veP5mLs22T ZDt8PS0n88aDjwLvuHfBhJ2H7MqWu7UHvUnTSdTxm2EqrAlPFeDbMkMzqezNg+QjdGsm l9jI0KGMVaI0PlxXu578p1HfUFFDYOagZdh5EAgQAMLmorJJ2WdZqfq3XYUUAPNlP6YF KSiwMYHPFxXbjRCcPdIekdA+1vTGH9L8h9ibr62jwUIuKLhn7KRgtW51/NTNIQuuJceC QyUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=7PN9fzdn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r9-20020a05640251c900b00415c51ed3casi4260876edd.397.2022.03.04.21.14.11; Fri, 04 Mar 2022 21:15:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=7PN9fzdn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230045AbiCECZW (ORCPT + 99 others); Fri, 4 Mar 2022 21:25:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbiCECZT (ORCPT ); Fri, 4 Mar 2022 21:25:19 -0500 Received: from mail-yw1-x112c.google.com (mail-yw1-x112c.google.com [IPv6:2607:f8b0:4864:20::112c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE5FE219EA0 for ; Fri, 4 Mar 2022 18:24:30 -0800 (PST) Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-2d6d0cb5da4so110517597b3.10 for ; Fri, 04 Mar 2022 18:24:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KaK+5lr9aY7CpYlBgNyNImsYowzjeltr1NfPXrT3b98=; b=7PN9fzdnBufyXzQWwLnjRIeqdwUtSVnJkYYxHxZPbPZaH9pK62brJRXw3moWiQiLb8 AAIac5IuyU8zx5xi259n2dEZVsq5+4ktFWr8DF43aDndpmKgwzcFgqzLMPiHbE0CEVD6 paW6fGl6iZkLNzTOG0GMwlAPI52v5IS5wPy4ONXU7Rbv5PWPlkLP8uE7df0r1t0U2oUP Ykx+b2H2f63683oeQw1sLFVO1V1UEff1wwfDvmXrO0Y4enBPOEN3qn6UOzhGjOqGeBA7 r54gkaVpIKkAl6h2aj+aVlWg/bNQ8E3HAeecNSFbVY6YVZLOvQ25kr2kel2qT8slYBZG muNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KaK+5lr9aY7CpYlBgNyNImsYowzjeltr1NfPXrT3b98=; b=PIetB7Ez8/FF2aS0LyLoq9UqT5iOKz98/i7OZjx+UY9TU68BAbxFwsWVRRT6ERM/vF aYVXkBkGYBpriblKTC9qaI1rQ/aLB00GgbZcC1BHZSwG32D/1dFnC+b5/lrCAelT+M0k wiW4eDJZrNWyA9CuQg8uN5EjHlsqVXfkdS6HdQA5vfTSf7dgK7c0LRaSVNx/dmwcCqhp DP655BPShDKHiAauwQvxymmQWhdfdPCg05OS+UdD1TrTLn2B5OHYziOayHJZLTx2idLp LX2fZNf8q2APlxYl/9KbmIQ7NAZIwR4yohazd67ezJ4o5Zb3Q6EsJBu+x2FeBO0xC9tT hJ0w== X-Gm-Message-State: AOAM533AMF9gob14sDrvWiKJSo79F5xo+OMkc1itZOIbZI+CHBw/gDtb pEOn1wujODehzVLKDgPpK71umZFHKh60rYRy2HU/kA== X-Received: by 2002:a0d:dfd4:0:b0:2dc:572e:10c2 with SMTP id i203-20020a0ddfd4000000b002dc572e10c2mr1245960ywe.319.1646447069558; Fri, 04 Mar 2022 18:24:29 -0800 (PST) MIME-Version: 1.0 References: <20220304093409.25829-1-linmiaohe@huawei.com> <20220304093409.25829-14-linmiaohe@huawei.com> In-Reply-To: <20220304093409.25829-14-linmiaohe@huawei.com> From: Muchun Song Date: Sat, 5 Mar 2022 10:23:17 +0800 Message-ID: Subject: Re: [PATCH 13/16] mm/migration: return errno when isolate_huge_page failed To: Miaohe Lin Cc: Andrew Morton , Mike Kravetz , Yang Shi , Matthew Wilcox , Huang Ying , Zi Yan , Minchan Kim , Alistair Popple , ave.hansen@linux.intel.com, o451686892@gmail.com, Mina Almasry , John Hubbard , Ralph Campbell , Peter Xu , =?UTF-8?B?SE9SSUdVQ0hJIE5BT1lBKOWggOWPoyDnm7TkuZ8p?= , Michal Hocko , riel@redhat.com, Linux Memory Management List , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 4, 2022 at 5:36 PM Miaohe Lin wrote: > > We should return errno (-EBUSY here) when failed to isolate the huge page > rather than always return 1 which could confuse the user. > > Signed-off-by: Miaohe Lin IIUC, this should be a bug fix since the status reported to the user is wrong. A Fixes tag may be needed. But anyway: Reviewed-by: Muchun Song Thanks.