Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4674948pxy; Tue, 27 Apr 2021 10:04:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/+P+etSYjZ61n7XyyYqEZO0bILoNwWfJS4JzBQntw0wHxBYNl+e9ypI8//JOpot6zzTNo X-Received: by 2002:a63:3c9:: with SMTP id 192mr23122386pgd.423.1619543091245; Tue, 27 Apr 2021 10:04:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619543091; cv=none; d=google.com; s=arc-20160816; b=cxckrzdSOC4QLN8H0z0coEnhRdO3BB4h72H7UrnJ71GGJrLY15ZUbllmgd1DHrPejE MQG1ulUsVwO2pp/k1eeByjrzv78NoENpAvWiJumcbLVWzxmUOoAYWWHzLrwpqJeFkHlt LuN75/8AeHywYVulImTUTtdRmz3gJAkerpNGOKFUOu7xR52Usbmul0UtJ8Zu8WWaUC/M hZ7joI62dUZSNKuuLp5sgcudZXRCF6Jk6/26knd76SVD55mbr4pbCluVC9Io+riEWtIh 58hMRhoIChDG/hST0gV8u3Nlh8OnEI41Kjkm5CjzxqNsJSbIc8LRxpIeu0ajGM59uUEW nLsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=GR5JD0ns+pkMtnVUKEORcsBQhRfif8pxVKBIY8qVHxA=; b=InGV5rFt7hjsSUTKTG66v0h2GynC6yoVu1XIt4f58C4FakOMC/oHJFETqlaw/oFrFR MGljTiSTFmt3iOfRaLm/89x/419Y+ZQn1GbXZaE3Dnmp9iBTBqFn1ezmry3Cvi9hRT+d TYo3Ocj9RVJ0ZLItiFfjmKR3vcI205Uh2i33oyrmJJ/plFyrBQQmzSVrYo6SVyqvzsJW oV5O5Z8Z/m1k9AdVo9vE5wm+fGw55Hb6t2l/UxBl+3TpB5CTlM0k7Q4dS2RYd1AmScZd 7dUpBskthJR0g0x6o83niIXzMbwxXDej3/+s4D0HmqwaQao1Wh9RMKJQKclcsFW2o6YK fjDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=QmLHoLcs; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p15si484432plr.387.2021.04.27.10.04.37; Tue, 27 Apr 2021 10:04:51 -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=@google.com header.s=20161025 header.b=QmLHoLcs; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235802AbhD0REk (ORCPT + 99 others); Tue, 27 Apr 2021 13:04:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236124AbhD0REj (ORCPT ); Tue, 27 Apr 2021 13:04:39 -0400 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 751CCC061756 for ; Tue, 27 Apr 2021 10:03:56 -0700 (PDT) Received: by mail-io1-xd33.google.com with SMTP id t21so9482415iob.2 for ; Tue, 27 Apr 2021 10:03:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GR5JD0ns+pkMtnVUKEORcsBQhRfif8pxVKBIY8qVHxA=; b=QmLHoLcsn+BCVDfzUQrjwg8Xy2xVvUXFxBBU5ft+H64o4TFVvBIXxXHuqOMECGEcTO dtvozDEMUp4GFivPJePB0PbkV52eNybLkucfQwmJgQrhAYuEEpl8ey6u5rr7froL9831 wYVyAxisrA82rOkudABuC3U8PenfOlk7D+S7mAqWQheynJuG+L6t550RQN2xH3AtQmcj YZOVPtow4jaHCIeBDjTYIj5/8GSNps1Fuw/jToYXPcH3cgKCRyqq/rZVHA/3bXXQ2Nve 2ueglmp/SjvnojiN9svPkpekJLSz97FI7Aop3wlrKzIy55Bwfsy6mB/auPJu3BpBHN4P BL/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GR5JD0ns+pkMtnVUKEORcsBQhRfif8pxVKBIY8qVHxA=; b=lsf8Axpuo9LqZGhz+fHImtm8zMl5AXGDgM45jB+SBJJQ4dqHVGRzL319VauRGJ1jk4 NzwWsl2ymUS3ReiVQCdCuaOJYfhZ3stUN7Ey/PPyUPoFcLT6sXsdHJZsoqUokqjan7UC GBSigBoxzFkOP9hJFcUHiH9n4LMZsK5x6F206zpo5fTpdXld/ZbUwEfvFo1wJbJJVY1P UbiQgrv6yUjWa6SlwsyujV99IPZxrQqXFjXtfEFX2uVacddKByQfn78PNPQMny5G7AO1 LnPb6DivXpUhHi0wSEB8lrdNunr8LO5fb4pyol26RQ/8KS9eukuXAY6BgObKGMo6Nago SYvg== X-Gm-Message-State: AOAM530qFQkTXriCYZpVz4CRa1eLUX/19LjO8ezrGvZEThTDuyk8e0jc 3bNHh2sEbkiEqx66mQ6y4qkw0ZaAjnZXU6KJ3jUTEw== X-Received: by 2002:a5d:9682:: with SMTP id m2mr20925814ion.20.1619543035845; Tue, 27 Apr 2021 10:03:55 -0700 (PDT) MIME-Version: 1.0 References: <20210420220804.486803-1-axelrasmussen@google.com> <20210420220804.486803-5-axelrasmussen@google.com> <20210427155713.GC6820@xz-x1> In-Reply-To: <20210427155713.GC6820@xz-x1> From: Axel Rasmussen Date: Tue, 27 Apr 2021 10:03:20 -0700 Message-ID: Subject: Re: [PATCH v4 04/10] userfaultfd/shmem: support minor fault registration for shmem To: Peter Xu Cc: Hugh Dickins , Alexander Viro , Andrea Arcangeli , Andrew Morton , 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ah yes, I should have modified the commit message when I swapped them the first time - sorry for overlooking it. As I said in the other thread, unless someone strongly objects I'll just re-order them the other way around, minor faults first and then CONTINUE, which resolves this concern at least. I'm not too worried about leaving them split. Clearly we'll never release a kernel with one but not the other. So the only scenario I can imagine is, bisecting. But, bisecting across the range where UFFD shmem minor faults were introduced, if you're using that feature, won't really work out well no matter what we do. If you aren't using this feature explicitly, then any of the configurations we've talked about are fine. On Tue, Apr 27, 2021 at 8:57 AM Peter Xu wrote: > > On Mon, Apr 26, 2021 at 07:23:57PM -0700, Hugh Dickins wrote: > > On Tue, 20 Apr 2021, Axel Rasmussen wrote: > > > > > This patch allows shmem-backed VMAs to be registered for minor faults. > > > Minor faults are appropriately relayed to userspace in the fault path, > > > for VMAs with the relevant flag. > > > > > > This commit doesn't hook up the UFFDIO_CONTINUE ioctl for shmem-backed > > > minor faults, though, so userspace doesn't yet have a way to resolve > > > such faults. > > > > > > Acked-by: Peter Xu > > > Signed-off-by: Axel Rasmussen > > > > And if this "04/10" had been numbered 03/10, I would have said > > Acked-by: Hugh Dickins > > > > Just read the comment above: "so userspace doesn't yet have a way to > > resolve such faults" - if it doesn't by this stage, we're in trouble. > > Right, so merging the two patches might be easier. Even if we don't merge > them, we'll need to touch up the commit message since at least above paragraph > is not true anymore as we've already have UFFDIO_CONTINUE. Thanks, > > -- > Peter Xu >