Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp37345pxb; Wed, 13 Jan 2021 22:32:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJyXzXwW+i9/wdyLzWrJu2lQaysbTgXZE+ygB/hhe4o6zzCMoKW0EyJxsys4nMm/QBpmLXvR X-Received: by 2002:a50:9dc9:: with SMTP id l9mr4591925edk.377.1610605930105; Wed, 13 Jan 2021 22:32:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610605930; cv=none; d=google.com; s=arc-20160816; b=vEeozL7RwLqHVVm7GzTAxq7XDyq/7W8Xi1oEGujb5oW8YoKvLHssHQ68T4eF53qnfF Ow5wC0JxGZgR3ZZf9rVozz0INxQqEaKFm9NkuS0gJGbdKUML/yZtAp4Hq7tk10QagMbm uv3o6ZonyQTtGjD4QOlH/DR+0MPHCv2E0SwNY4roiAOsmpdZcW5BwEmt7iNwGKZUmi07 v9hvrFtx46gY+pIb+1d6BsIZWVnvreCmTMCs6e5+RzIa8C0w36IaPtKaRmfx+zRmpEt6 hIAzjVGOTAbZveeewlOBRTiW1SQl20NyZ1SqNcSONHXy7tZW7L58Stunf/rlEwDxDI7S Tm4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version; bh=lH7dHW3f5YSglreYw+wBQE2s5OjxRUF6m6pHvH0/QLE=; b=qQW3Geqq1btmxvxj/J5YVOV2nlCmQ3T6dow/xpIbTmpz684ItNleM3v2Yc69Ginnfm WLBtfuPDKQ8CxbFGkiY0FOtGTdpQc//Sxnm60cTtYeX6eHhc7kvlMZgWwo8EF7JTrkCw egPcX0bzP+yZeuE+vt8N8ExRUi4RHjIfkCfI6GrO8epNrcVFo4wYZ4qoMXWoQU5gGGYp ZJZ/SvGeiACCwrJQfPv8tvMLI6eB9bYgfJu/rvYZ6va4umFxP8ft2MJJs7fLENeyBRF0 M0bUGvf3PrxMEDocXgAV0J/zCAM5mEXIoNPOc+rSd3VghPX+EltW/lCMt26Ol0fm7W3y EY8A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o25si744341ejg.728.2021.01.13.22.31.46; Wed, 13 Jan 2021 22:32:10 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726127AbhANGay (ORCPT + 99 others); Thu, 14 Jan 2021 01:30:54 -0500 Received: from mx2.suse.de ([195.135.220.15]:49786 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726104AbhANGax (ORCPT ); Thu, 14 Jan 2021 01:30:53 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 861DDAB92; Thu, 14 Jan 2021 06:30:12 +0000 (UTC) MIME-Version: 1.0 Date: Thu, 14 Jan 2021 07:30:11 +0100 From: Oscar Salvador To: Dan Williams Cc: =?UTF-8?Q?HORIGUCHI_NAOYA=28=E5=A0=80=E5=8F=A3_=E7=9B=B4=E4=B9=9F=29?= , akpm@linux-foundation.org, Naoya Horiguchi , Michal Hocko , David Hildenbrand , stable@vger.kernel.org, linux-mm@kvack.org, linux-nvdimm@lists.01.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 4/5] mm: Fix page reference leak in soft_offline_page() In-Reply-To: References: <161058499000.1840162.702316708443239771.stgit@dwillia2-desk3.amr.corp.intel.com> <161058501210.1840162.8108917599181157327.stgit@dwillia2-desk3.amr.corp.intel.com> <20210114014944.GA16873@hori.linux.bs1.fc.nec.co.jp> User-Agent: Roundcube Webmail Message-ID: X-Sender: osalvador@suse.de Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-01-14 07:18, Dan Williams wrote: > To be honest I dislike the entire flags based scheme for communicating > the fact that page reference obtained by madvise needs to be dropped > later. I'd rather pass a non-NULL 'struct page *' than redo > pfn_to_page() conversions in the leaf functions, but that's a much > larger change. We tried to remove that flag in the past but for different reasons. I will have another look to see what can be done. Thanks -- Oscar Salvador SUSE L3