Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3738866pxv; Tue, 13 Jul 2021 02:34:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/rXi8mhaJAGet/EddJ6p9p2opqTae5qCfooFKa2KJ2GWPZCOxNySN3JIcDAhl2jzdx2xB X-Received: by 2002:a05:6e02:1d0f:: with SMTP id i15mr2101450ila.199.1626168894156; Tue, 13 Jul 2021 02:34:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626168894; cv=none; d=google.com; s=arc-20160816; b=NGsSSaWbmqRcZlpJu0XSzYDcwJzB5T4nlC17sukwU5WQ+LSBhgzg6ki+QrAW2LWdHm Nho+jks6JzXHXP+5lqCfCwQkqJuuQfZYM4eu8Ev/oLOhC2cuX3thFlYXRanM7tsw/T45 JX8Idcr5VS/ybScPgL0OtHk08mJ0hM4XYfU+SIwjaQPwytS9TEACEbZCtLuEbafdNo/F h06sKWf9gL56YQuZCQH4RTq+2I7rbwqgNfI/7U5+a5t7aXwYG1o9feB24eMnyhqTnHqj D8ow2n3boRMz/oKaOR0bs6TjIgPZSuizzVRr3Ox08MrGsgBhi3oBOfNWS8EBLaQlw8Xt 7szA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=w3Sj149XMB0QShxaoOCWjevBXrahbi07+L3gB+CfwcY=; b=mYjJprY7nS8DQHR7SlbhXdt8BYrmyQtzN/GvTlbce5PIn942fbBuljsxH93jJkFgXs xjtWlGSpv3lYLv3NBXAAXRghVa7E8+jYA693yY4B78Yj5LslonVmqN6o6Z1qqqOv6PEz p4Zi8/Za/FYkKatQjKUKc7jFaWxxydi0GcMkx1DcDPvsyoeA+bh7lT4HSp9Ucsla25qd rAVnhNVpcyzO4p7BhvAtNqNrmu0vRYjE0nWUKLLdFofRxZZSQdNv/nlhUSU+39VfB0Xt CPpfIBdHPiyUK6kceoF+BlzfbT1pldYQCbBD2CxWVQhEY++RTtY1ULZdfz2t8AXdtuWn rHxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="ot/bciPD"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n12si19799904ilq.134.2021.07.13.02.34.40; Tue, 13 Jul 2021 02:34:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="ot/bciPD"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235293AbhGMJfU (ORCPT + 99 others); Tue, 13 Jul 2021 05:35:20 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:45396 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234819AbhGMJfU (ORCPT ); Tue, 13 Jul 2021 05:35:20 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id EA65722119; Tue, 13 Jul 2021 09:32:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1626168749; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=w3Sj149XMB0QShxaoOCWjevBXrahbi07+L3gB+CfwcY=; b=ot/bciPDVvOfiixjXDQj8Exwa60bHVBMfYFRPkmjCAiEVydB3+a/oY7lMDr50NPShpqoaD 5AjG672jzBPfbZWlzKmIsN35BbuWbMUZ9OCy7IcmuYM49Hb9/ejf+jjq7HYlc1WIdgoWzs 9lHYaH0S1NVQF0ZFYxbk6AsTLMXUDsY= Received: from suse.cz (unknown [10.100.201.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id BB9CAA3B9A; Tue, 13 Jul 2021 09:32:29 +0000 (UTC) Date: Tue, 13 Jul 2021 11:32:29 +0200 From: Michal Hocko To: Miaohe Lin Cc: akpm@linux-foundation.org, hannes@cmpxchg.org, vbabka@suse.cz, axboe@kernel.dk, iamjoonsoo.kim@lge.com, alexs@kernel.org, apopple@nvidia.com, willy@infradead.org, minchan@kernel.org, david@redhat.com, shli@fb.com, hillf.zj@alibaba-inc.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/5] mm/vmscan: fix misleading comment in isolate_lru_pages() Message-ID: References: <20210710100329.49174-1-linmiaohe@huawei.com> <20210710100329.49174-6-linmiaohe@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 12-07-21 19:16:47, Miaohe Lin wrote: > On 2021/7/12 15:28, Michal Hocko wrote: > > On Sat 10-07-21 18:03:29, Miaohe Lin wrote: > >> We couldn't know whether the page is being freed elsewhere until we failed > >> to increase the page count. > > > > This is moving a hard to understand comment from one place to another. > > If get_page_unless_zero failed, the page could have been freed elsewhere. I think > this looks straightforward but doesn't help a lot. Are you preferring to just > remove this comment ? Yes the comment in its current form is not really helpful much. Does it deserve a single liner to drop it? Likely not on its own without more changes in that area. -- Michal Hocko SUSE Labs