Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3283373pxb; Fri, 12 Feb 2021 14:18:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJw4Dj3/F0nFzSvmLPC5rY5zK6eENupjYE6SJBWI/PMWx9Y3MhEBcLZ3ZY5Hagyepm8HfTcA X-Received: by 2002:a17:906:d189:: with SMTP id c9mr5197454ejz.36.1613168296928; Fri, 12 Feb 2021 14:18:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613168296; cv=none; d=google.com; s=arc-20160816; b=TLXlt4kKfUMRnS6RJ5PcHj6h71CeTfohFD9tUgZq49s2V1FU/3jKgnRBL9UJttkV2z 6y+N2lbYJW8t04Arxl80jCPoK9VSK8lbpY0jw8Xi4oj+SRHMLRAxjs2sgpk3X675fZkY 67zlqO6WVkmIfTbgAwf3QpdDNtuF5fz3ng72BRbPdKUzzfyAdOhJfdEQivJ8FtVnBXBb qptxvkyy3mm4wmtkzNX1u69H7KKT1nFFkg3Zkg4f/ZzJkQF82RL/M9C/iVp+FPiIhfJX vdJIWZ5xkv2XSvltnH32vfgCNJgqqpm7Rf1lNmIkV8SkMgr3DHJsyUCxnImZlV3tJzM1 RnIQ== 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=NM6XT65mv4VcavdfmwjtH1q2UKP+BPnEnoXWk6zcyFs=; b=XKyLA40K6gLi6zIPRAvoNCJExdVyGjOpDIPnas89z4H3hPWEYl8CAT8ZxhHIKUnzju PpQALEkNkiepH9Z9Us3gDEE8p3DrQHLdk1zBSM3rNhi3jYC/b5ZBSTY0jRl4/leMZkqe nx0DcAC4b4mDdSbziFiKmxKb6MdWZo1MqEehHg/gnxNuzTJscpt8/fWZJzso1yMFYT9l kw65fuz7GreoFyLyFqT9AYSKm0kTbiUsbAC+ydcy4UnHBOp/kwqvSkPwAg+N7pCGev4M uSYf4QHRHbLmNP8tD1OEGbKKxpODAygnDHM6jZF1qqwlP/mn+4mvSdedHGNR8rLwY4dO LEkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cjcgKWMn; 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 j17si7253937edp.485.2021.02.12.14.17.52; Fri, 12 Feb 2021 14:18:16 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cjcgKWMn; 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 S229497AbhBLWPh (ORCPT + 99 others); Fri, 12 Feb 2021 17:15:37 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:38178 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229602AbhBLWPg (ORCPT ); Fri, 12 Feb 2021 17:15:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1613168050; 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: in-reply-to:in-reply-to:references:references; bh=NM6XT65mv4VcavdfmwjtH1q2UKP+BPnEnoXWk6zcyFs=; b=cjcgKWMn2ise+d+twbicpnbDafBFcJ9XHn1TkACZzh8FqiE8JcRj9Ypfdmf5vgipiuzzu7 vciBU+nyBJcyRUNT4gKAnY6SPpQR9zUmejAaXbnLnzGT8Op5NPPvYelc7D6WoDSxwfw2tU Z2L+NKDadWFfy8xjT5KT+Uf7R+C0+74= Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-328--nt_fTXZPUa-0oy04bHq6g-1; Fri, 12 Feb 2021 17:14:08 -0500 X-MC-Unique: -nt_fTXZPUa-0oy04bHq6g-1 Received: by mail-qv1-f71.google.com with SMTP id h10so574127qvf.19 for ; Fri, 12 Feb 2021 14:14:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=NM6XT65mv4VcavdfmwjtH1q2UKP+BPnEnoXWk6zcyFs=; b=LImtIHYTy8hWfxuA+k6XfH+k+hWsO84CioN++ja1dXXIHl03G6tVVljJbAl3tQSDId /VAnCiKeKIsyvxIFo6UNoCUJNI4qLLpOgcoGa1Sb0pkBqlUl6ruZoc82aC+cu9JvgzIl +8QtJgyLtJQBKt7kzCTrJkhQSRU4I0xxkVfcraLj/25q+Kc4ucxOTREUECZpitREXi80 RBt1Ozb7J3qIFROLuqDDdYUgGQ2IUe4zls/LjF9YQcFClu1A1oGA5prNNIuM7R4uUhrA suisUPLoNE2zB3UdLkJtnjWNPry/cfJQmFg8CaDy++gIQrstn6RatalA0FptGl2gyVkQ tlrg== X-Gm-Message-State: AOAM533s99AuGCsIK2D2RbVkwo+97PVnF0uL1NDPswjLEtSnWhYWavPO wC03q8wtFamqWfucWhFXbxyTo+PS7G4YLqUTnsflbF9SKrOplTmehN+rCuqbCCP6qQ4/GB8iLpE W9kznJGA8B+Va9S5tUi7TZpca X-Received: by 2002:a05:620a:6d0:: with SMTP id 16mr4645213qky.335.1613168047025; Fri, 12 Feb 2021 14:14:07 -0800 (PST) X-Received: by 2002:a05:620a:6d0:: with SMTP id 16mr4645162qky.335.1613168046774; Fri, 12 Feb 2021 14:14:06 -0800 (PST) Received: from xz-x1 (bras-vprn-toroon474qw-lp130-20-174-93-89-182.dsl.bell.ca. [174.93.89.182]) by smtp.gmail.com with ESMTPSA id p16sm6558793qtq.24.2021.02.12.14.14.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Feb 2021 14:14:06 -0800 (PST) Date: Fri, 12 Feb 2021 17:14:04 -0500 From: Peter Xu To: Mike Kravetz Cc: Axel Rasmussen , Alexander Viro , Alexey Dobriyan , Andrea Arcangeli , Andrew Morton , Anshuman Khandual , Catalin Marinas , Chinwen Chang , Huang Ying , Ingo Molnar , Jann Horn , Jerome Glisse , Lokesh Gidra , "Matthew Wilcox (Oracle)" , Michael Ellerman , Michal =?utf-8?Q?Koutn=C3=BD?= , Michel Lespinasse , Mike Rapoport , Nicholas Piggin , Shaohua Li , Shawn Anastasio , Steven Rostedt , Steven Price , Vlastimil Babka , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Adam Ruprecht , Cannon Matthews , "Dr . David Alan Gilbert" , David Rientjes , Mina Almasry , Oliver Upton Subject: Re: [PATCH v5 04/10] hugetlb/userfaultfd: Unshare all pmds for hugetlbfs when register wp Message-ID: <20210212221404.GE3171@xz-x1> References: <20210210212200.1097784-1-axelrasmussen@google.com> <20210210212200.1097784-5-axelrasmussen@google.com> <517f3477-cb80-6dc9-bda0-b147dea68f95@oracle.com> <20210212211856.GD3171@xz-x1> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 12, 2021 at 01:34:03PM -0800, Mike Kravetz wrote: > I'm good with the new MMU_NOTIFY_HUGETLB_UNSHARE and agree with your reasoning > for adding it. I really did not know enough about usage which caused me to > question. It actually is a good question.. Because after a 2nd thought I cannot think of any mmu notifier usage to explicitly listen to huge pmd unshare event - it could be just a too internal impl detail of hugetlbfs. I think any new flag should justify itself when introduced. Before I could justify it, I think MMU_NOTIFIER_CLEAR is indeed more suitable. Thanks, -- Peter Xu