Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1663635pxf; Fri, 9 Apr 2021 14:21:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwINAyV/i0Nxjvz7qrbubTZnTT4HAb6zvAMFRBqDxLUwCnEkk2/tITE5laGmrXKubO5IHSL X-Received: by 2002:a17:906:e48:: with SMTP id q8mr18109146eji.84.1618003294128; Fri, 09 Apr 2021 14:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618003294; cv=none; d=google.com; s=arc-20160816; b=y0zw7LBKObHSo4l1ZVKgCXOcilrtot41PRuQa2yrz7IlGVv7haeKncEIsBtrvYT8Nr hCGOOjEiDQ+GuG6EK+H/+2m/jv1QVBN/CBMTqRUiVQjIbVFV8qSQVAMta+v4to6NjJZq f0jMlZkoxBjDGA8KWcLV87e+M0CCT4doeEcz0/TMLPEYDniqm5fFwSPRvAiU4m7DiGR1 R5b7jClI1oh1s6Ki2Z/oBpEFW7d+HkbL7rYk+KLoGlQZvMzrcUkIGu274a8bYa16j38H Md7gQ4YGWaxnHSo3irjXRK0legl+0oSZaene2iStW70LsfmcVSp9mwQU2SzC80vudXjE BVlg== 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=6LfDPLi5E0po8MV65N/nBXOnSa/U1n1bpGd2B6Y5zrs=; b=C5a03LCfpzS/hHPTUy5cITIivlnCX53+HhjdxIdxJ4BfOezpokWRO/tczvnm5eKP1C B2wzK0ep09/2YVO9tsAQz0AvMKP05fqFV95QQHI79C++ndbgZsXx6qKDdf8lpOnLMmMk QGms4Qz+8KTdGVC/L6SNMinjJG17o2OwZMwTYHj0dwmJZhb1a9O4S0B0dpqSq/JomxrW kHlUG2eoXM/SOrrk2nFRy8ZAbuAdnTzAZIWDj2044oRMcBuBu/G/qa0KPAxLCKFxVKnP oRexqHvwpLFaPe5Uil1OSU9fghSZTM7h1xtuBdkb9KM2r0cTnL0uU7T/zA2UMZ774sal 1hXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=I9JDV9GB; 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 a62si2789076edf.180.2021.04.09.14.21.07; Fri, 09 Apr 2021 14:21:34 -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=I9JDV9GB; 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 S234379AbhDIVSs (ORCPT + 99 others); Fri, 9 Apr 2021 17:18:48 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:37199 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234424AbhDIVSq (ORCPT ); Fri, 9 Apr 2021 17:18:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1618003111; 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=6LfDPLi5E0po8MV65N/nBXOnSa/U1n1bpGd2B6Y5zrs=; b=I9JDV9GBiiEzByB4Yqw3MnhqgGF/gvIu9iBT7dkVMEAq7a1pobB3kU6YEdLl2EcsJAVvnM Cw9JJvdVloFs1+sYZZwcfvYkGhkdYEE2YXy6ot3KMp5ehDdFPtQRyd/1mWoBoEOrkOfxez XzMOlRCyOfNtXs7K8VsSAkS9Biv54tM= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-366-NQ0Q_KNSO4OImZE4I85Y1g-1; Fri, 09 Apr 2021 17:18:28 -0400 X-MC-Unique: NQ0Q_KNSO4OImZE4I85Y1g-1 Received: by mail-qt1-f197.google.com with SMTP id h22so3242625qtb.6 for ; Fri, 09 Apr 2021 14:18:28 -0700 (PDT) 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=6LfDPLi5E0po8MV65N/nBXOnSa/U1n1bpGd2B6Y5zrs=; b=ETj6azWEVrGwg1nz/iawNjy0cwGTtpCgr8uWuzDzDXTW0VRYv24a/MWpRSBBmNoL+c swzcN5ViKUlx1TF0wpEJuJgtQyM6wH8hMee3JqyOmi7v9k5nlbpBqx8hlAndMu5KjKov GNMqvBA2SsCm3SmL+ozMSeSbc98SYPyaH6Wc0SwSf6l7vlDFl/sTcsfDtTiPozheFxIE u5EeyxNQ9hjVIe0FM7cPcE7LrcPiO/W+gjRGPhRDiveA92dy1fkta7ZATLI/ml8VZfVL DhkQne4VmfJhmYcO48SnZfsVCZkWpKPOS799IkzkrUcFhnzbCGZA/1l6z1K0cHLLN5xu XkOw== X-Gm-Message-State: AOAM530Zt7peaZAYGjSfgz4fJPD/2PNXCIPEQ/A71eKTN1fmyIKEdQFn r7yiTm2C/n2WvMh2gLXlXB5dYYEKBdoKZNB4NTqrQt91PtSUwDemscRDn1JyzXW4SiFBRIw8oSu ZoC73eEbeuEeUuCGCFsJmnAmL X-Received: by 2002:a05:620a:1369:: with SMTP id d9mr16206723qkl.378.1618003107922; Fri, 09 Apr 2021 14:18:27 -0700 (PDT) X-Received: by 2002:a05:620a:1369:: with SMTP id d9mr16206687qkl.378.1618003107587; Fri, 09 Apr 2021 14:18:27 -0700 (PDT) Received: from xz-x1 (bras-base-toroon474qw-grc-82-174-91-135-175.dsl.bell.ca. [174.91.135.175]) by smtp.gmail.com with ESMTPSA id d68sm2628359qkf.93.2021.04.09.14.18.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Apr 2021 14:18:26 -0700 (PDT) Date: Fri, 9 Apr 2021 17:18:24 -0400 From: Peter Xu To: Axel Rasmussen Cc: Andrew Morton , Alexander Viro , Andrea Arcangeli , Daniel Colascione , Hugh Dickins , Jerome Glisse , Joe Perches , Lokesh Gidra , Mike Kravetz , Mike Rapoport , Shaohua Li , Shuah Khan , Stephen Rothwell , Wang Qing , linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, LKML , linux-kselftest@vger.kernel.org, Linux MM , Brian Geffon , "Dr . David Alan Gilbert" , Mina Almasry , Oliver Upton Subject: Re: [PATCH 0/9] userfaultfd: add minor fault handling for shmem Message-ID: <20210409211824.GH792100@xz-x1> References: <20210408234327.624367-1-axelrasmussen@google.com> <20210408220440.aab59f2f06beb840c22377b3@linux-foundation.org> 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, Apr 09, 2021 at 10:03:53AM -0700, Axel Rasmussen wrote: > On Thu, Apr 8, 2021 at 10:04 PM Andrew Morton wrote: > > > > On Thu, 8 Apr 2021 16:43:18 -0700 Axel Rasmussen wrote: > > > > > The idea is that it will apply cleanly to akpm's tree, *replacing* the following > > > patches (i.e., drop these first, and then apply this series): > > > > > > userfaultfd-support-minor-fault-handling-for-shmem.patch > > > userfaultfd-support-minor-fault-handling-for-shmem-fix.patch > > > userfaultfd-support-minor-fault-handling-for-shmem-fix-2.patch > > > userfaultfd-support-minor-fault-handling-for-shmem-fix-3.patch > > > userfaultfd-support-minor-fault-handling-for-shmem-fix-4.patch > > > userfaultfd-selftests-use-memfd_create-for-shmem-test-type.patch > > > userfaultfd-selftests-create-alias-mappings-in-the-shmem-test.patch > > > userfaultfd-selftests-reinitialize-test-context-in-each-test.patch > > > userfaultfd-selftests-exercise-minor-fault-handling-shmem-support.patch > > > > Well. the problem is, > > > > > + if (area_alias == MAP_FAILED) > > > + err("mmap of memfd alias failed"); > > > > `err' doesn't exist until eleventy patches later, in Peter's > > "userfaultfd/selftests: unify error handling". I got tired of (and > > lost confidence in) replacing "err(...)" with "fprintf(stderr, ...); > > exit(1)" everywhere then fixing up the fallout when Peter's patch came > > along. Shudder. > > Oof - sorry about that! > > > > > Sorry, all this material pretty clearly isn't going to make 5.12 > > (potentially nine days hence), so I shall drop all the userfaultfd > > patches. Let's take a fresh run at all of this after -rc1. > > That's okay, my understanding was already that it certainly wouldn't > be in the 5.12 release, but that we might be ready in time for 5.13. > > > > > > > I have tentatively retained the first series: > > > > userfaultfd-add-minor-fault-registration-mode.patch > > userfaultfd-add-minor-fault-registration-mode-fix.patch > > userfaultfd-disable-huge-pmd-sharing-for-minor-registered-vmas.patch > > userfaultfd-hugetlbfs-only-compile-uffd-helpers-if-config-enabled.patch > > userfaultfd-add-uffdio_continue-ioctl.patch > > userfaultfd-update-documentation-to-describe-minor-fault-handling.patch > > userfaultfd-selftests-add-test-exercising-minor-fault-handling.patch > > > > but I don't believe they have had much testing standalone, without the > > other userfaultfd patches present. So I don't think it's smart to > > upstream these in this cycle. Or I could drop them so you and Peter > > can have a clean shot at redoing the whole thing. Please let me know. > > From my perspective, both Peter's error handling and the hugetlbfs > minor faulting patches are ready to go. (Peter's most importantly; we > should establish that as a base, and put all the burden on resolving > conflicts with it on us instead of you :).) > > My memory was that Peter's patch was applied before my shmem series, > but it seems I was mistaken. So, maybe the best thing to do is to have > Peter send a version of it based on your tree, without the shmem > series? And then I'll resolve any conflicts in my tree? > > It's true that we haven't tested the hugetlbfs minor faults patch > extensively *with the shmem one also applied*, but it has had more > thorough review than the shmem one at this point (e.g. by Mike > Kravetz), and they're rather separate code paths (I'd be surprised if > one breaks the other). Yes I think the hugetlb part should have got more review done. IMHO it's a matter of whether Mike would still like to do a more thorough review, or seems okay to keep them. I can repost the selftest series later if needed, as long as I figured which is the suitable base commit. Those selftest patches are definitely not urgent for this release, so we can wait for the next release. Thanks, -- Peter Xu