Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1196627ybt; Wed, 24 Jun 2020 23:31:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjeLdJlxF9lTfkrLgql0r7efOhBGnnHF+eTuXhYYT/YYp9HK/R9Cj3qtmirEKd6EZUUIsU X-Received: by 2002:a17:907:119a:: with SMTP id uz26mr29472826ejb.523.1593066677184; Wed, 24 Jun 2020 23:31:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593066677; cv=none; d=google.com; s=arc-20160816; b=c3yS3KnVj8OTq5E0XjAP8lcl17aIImJY2SahsAtcLN8o48JStbNk/WJWXVugVz1Nkq xkjsZ0uhoTQzK02Xe03d1HgDTS7RDER5M9P6ebPE59vjS1bDX9jaLnLw+5RkysZO973C 8uoe+AV2UYRpTuDaVNLKFRa71mRy3hxOq8T/YPwaMjmvxL3wlWktBgU86ZoKxJCLBNO/ 5nszPDAnIRMswR/JBrWMlMOUgiJVq3recUayR6AZmJZRRG1qsOf6JWpeuRo8/YJEAJp/ 5MR8ZUQpEi0n0LCAQqrnIl8M+vA1sEg2Y1iCR8e65W/HOTv4aEM8W5t9hAqxeai87e7k Bc1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=cDJsuG6GtXcaphjSiqDFSb49Cz2RH/+bn5qUN8ueiH8=; b=c3k+O0ikxZ/vFg4XQuMuERr1N1X5fRUtBcVgKE9N2V4oPOdW8TLDC/uDSxFyYw19xk wxlGW/awionb1lzuIO25cgTqXHlVsxOFglL0MeIw3Kqyq8AFmcdJXPT4k3GFbDDJ9y+J H4hY4KZJOQYRO9QYWeIQ6yVVqFjUNpdVg43eZC9C/yOAQgsX2fEREyPTIvASioE7/jNQ qv0MkUXnMB9jmU5xJ32AWSplYAY+S9VuxQ3PS/kqYqezNm5VVgH4Sk7yGU1PVQlxh0Lc cwHeBrJFgM38qViDlkxUHcXbPmeWIunzml9GHauNArSRm58NkKsXRRSukLcUA21u2OU1 1TOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JDz4VRj5; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v27si13816551eja.107.2020.06.24.23.30.53; Wed, 24 Jun 2020 23:31:17 -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=@redhat.com header.s=mimecast20190719 header.b=JDz4VRj5; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389551AbgFYFxq (ORCPT + 99 others); Thu, 25 Jun 2020 01:53:46 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:31056 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389239AbgFYFxq (ORCPT ); Thu, 25 Jun 2020 01:53:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1593064424; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cDJsuG6GtXcaphjSiqDFSb49Cz2RH/+bn5qUN8ueiH8=; b=JDz4VRj5rxRaNAvTGw0dYyupS0052Am6iU3ejJ5/cVp+ttuFhfAvX3D/c0Ypf02dB5NLEF +ha+KLcS6FMBnZcTPiGgjaDMUzsJAeR/0PcuPKJi+VB5eMwXJcUWGeGV+lZWUn26/kF9Qv LZGiPt/LGiAL817TcvSBOzNa1ubcWDs= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-36-s8fBKFQdMT26N4aa6Rwdiw-1; Thu, 25 Jun 2020 01:53:42 -0400 X-MC-Unique: s8fBKFQdMT26N4aa6Rwdiw-1 Received: by mail-wr1-f70.google.com with SMTP id i12so6041299wrx.11 for ; Wed, 24 Jun 2020 22:53:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=cDJsuG6GtXcaphjSiqDFSb49Cz2RH/+bn5qUN8ueiH8=; b=JtptwE/U1b8+8ZEtNPGX2C8zZcbdo+fNBxVmHoUE82MnCrYRCqPeZ9x7WuuLOcrYvP TkBRan+6y04jjq2Xo/K+Z2JOZD/PWSgNnnjMc2cMaajpeuDIXrwjQrypcgJZCMr5JtxL 0SI8RWU187smOhFppwFB4EB2gPocqYrwbCtpGOsfi+L3tLlgNTtTw8xiOJIVXh1KCYA2 qgHNFteo6/NBUPaJYDwSnU3fcdX4KKJY/aMo4AduSYkwA5MVpwAZuzAYj+ypyvAJPpkj sNwlNCOhsaKYdORvOqkpsrS4Tkg5YIxSKtONZZkJQxzeCYd2cizhoYGegXcJMJJeYp1z VLQA== X-Gm-Message-State: AOAM531DZRYyA5/UVQJ2gGQlzIjbN9nmjpN5/SMWtjejve3VB2mKtmld kkTkYbtasiOGEiZbWx+AfbF3+JTbg/l/2iORHSwbQN2dpklBAgxDPuB/vKpbS30hTtk8F7FpDJu rDP14QYouc6GaDHuEzsOIMcuO X-Received: by 2002:adf:ee0f:: with SMTP id y15mr34182290wrn.76.1593064419350; Wed, 24 Jun 2020 22:53:39 -0700 (PDT) X-Received: by 2002:adf:ee0f:: with SMTP id y15mr34182274wrn.76.1593064419144; Wed, 24 Jun 2020 22:53:39 -0700 (PDT) Received: from [192.168.3.122] (p4ff23f47.dip0.t-ipconnect.de. [79.242.63.71]) by smtp.gmail.com with ESMTPSA id d28sm32340485wrc.50.2020.06.24.22.53.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Jun 2020 22:53:38 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: David Hildenbrand Mime-Version: 1.0 (1.0) Subject: Re: [PATCH] mm/spase: never partially remove memmap for early section Date: Thu, 25 Jun 2020 07:53:37 +0200 Message-Id: <4D73CD59-BFD5-401A-A001-41F7BF5641BA@redhat.com> References: Cc: Wei Yang , Michal Hocko , Andrew Morton , Oscar Salvador , Linux MM , Baoquan He , Linux Kernel Mailing List , David Hildenbrand In-Reply-To: To: Dan Williams X-Mailer: iPhone Mail (17F80) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Am 25.06.2020 um 01:47 schrieb Dan Williams : >=20 > =EF=BB=BFOn Wed, Jun 24, 2020 at 3:44 PM Wei Yang > wrote: > [..] >>> So, you are right that there is a mismatch here, but I think the >>> comprehensive fix is to allow early sections to be partially >>> depopulated/repopulated rather than have section_activate() and >>> section_deacticate() special case early sections. The special casing >>> is problematic in retrospect as section_deactivate() can't be >>> maintained without understand special rules in section_activate(). >>=20 >> Hmm... This means we need to adjust pfn_valid() too, which always return t= rue >> for early sections. >=20 > Right, rather than carry workarounds in 3 locations, and the bug that > has resulted from then getting out of sync, just teach early section > mapping to allow for the subsection populate/depopulate. >=20 I prefer the easy fix first - IOW what we Here here. Especially, pfn_to_onli= ne_page() will need changes as well. At least my ack stands.=