Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4935526pxj; Tue, 22 Jun 2021 11:10:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRGrVXXFDypza5j2a+g9mf4nya9LBbBormws+8wwIn9UmcGccQcB6OImStmogTD8KAa5kU X-Received: by 2002:aa7:cc19:: with SMTP id q25mr6822753edt.56.1624385437185; Tue, 22 Jun 2021 11:10:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624385437; cv=none; d=google.com; s=arc-20160816; b=Ir+5eXd02lOFaSbrE/DAKaCa0wwygjGx8RMbOVwItf1xg1fO/bfhEGJ1z3YxQPNGRT PPOogpm2gkrf/5lAY79nlH4wnyk1MxU+ZzrSK5G1MIBEv89um2MPMx6BgBkf1P0tIY4h /wNqBwhyh9t8zyxD5ZCWN9NVxaQpV0DSQSM1hfBloE2N4FOL8ONbX6XOPbBS6MVVFvGS 94SZSyIE3tPNCB/id+pv8S09wj/JlDzuoIFffXKRaU2LU3XCvXmu854HbP+En2gQIIax VTPgEj5Ganyqkw09LCDDX87MhLOJqRrx05+T1eCs0dTh6XGrBUhUeJbLNUEF3KbmGKI7 +FTQ== 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=xqKyH/P85UNiqEHVhnOTWzjeuNjUUBapCv+LJwl/SMM=; b=YtjJFYTpvDOFkYHoBCoeGmGgAyzhZanLZPJedCUJJI8cYzdDrM2SDZiZeyKE2roFv8 Tm0/9cuAJk33rk3UjuDi+/0a+ihv1EzqPMWiUHm3ei5hLXgt5Oxbi1NY0I/FJsnI8Emd 4UMzxe6gqFyxAzan7Mvah4NXu92Q3oRbYPPELWEjWrIGTb1myPE4XbZuKh0J1Sn9WOFE RPKk5cVrIj7MEOAwfwb0TjrDtx7W3ANIv06d/VXD7OnSMqAfYmYgNQbbl6DCUqhpjUSr 5e3TtsIHUNRVe0cVL5497ScvKQitra6y/T4X3dc+ZIsuElXgAzDNwKlSnWDeDU1boJdI 4tQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Pc4u8ARW; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-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 21si13920436eji.338.2021.06.22.11.10.12; Tue, 22 Jun 2021 11:10:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=@linux-foundation.org header.s=google header.b=Pc4u8ARW; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232555AbhFVSL5 (ORCPT + 99 others); Tue, 22 Jun 2021 14:11:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232537AbhFVSLh (ORCPT ); Tue, 22 Jun 2021 14:11:37 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80077C0613A4 for ; Tue, 22 Jun 2021 11:08:16 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id p7so37243323lfg.4 for ; Tue, 22 Jun 2021 11:08:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xqKyH/P85UNiqEHVhnOTWzjeuNjUUBapCv+LJwl/SMM=; b=Pc4u8ARWhKyeoTp1QuUkXBYBsNhLhb50XcDTJAb7BeD9eYAsVHsqvKwGuLk7Y7WXFh sGUzQo5XOG6b7IDfEgtSX4i/xqSSe/y0aDwXDka1ZbLzPxspVFyZB3D6fQnjL8/sEFzR UsXtmOmXBwWLZpOf2Kui9wetdxlAxOLjK9fnM= 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=xqKyH/P85UNiqEHVhnOTWzjeuNjUUBapCv+LJwl/SMM=; b=LntQ+s4GiAQ0oIUuazIpFqM7z7rkrK9lD2HgG4kalBIxQssP9QzVKP4+c+RJ2SZd6+ Eh1vbhCu4VStTzH/wLlry9cppZjkREOKgWAg0iSgA8lJ/Lp8zoeC4uLFnPy6t8YfT9ft PVOZ8hIPnMPm7r5pAy2/L6jy7Q7r2i5vKpVqUcG2h8lK7bfK1vy3hQ8lCxdyw+RwuDNn Z9ct13wgUcFRMR+pV2ilE2Ydn+CUFJD5MCTmBUN1EwJ4UxK9AGpleWgRwUaUF1ypyqFC XVfiNLVKUil1eMV1Wo/gM+WtL0gOqwMbfvYPuOarDz0LVURtlLgd/PuWeOow3SiGXQcJ ARlA== X-Gm-Message-State: AOAM533vOfQKw3JSFtLP4JeIHkHkOU87/eiM4slBVDNuPVbMwooqH4vS /QAhGYz7HGS0YltQ3MobIRSQH4/cixPxB6oFzlE= X-Received: by 2002:a05:6512:3089:: with SMTP id z9mr3962049lfd.220.1624385294738; Tue, 22 Jun 2021 11:08:14 -0700 (PDT) Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com. [209.85.167.44]) by smtp.gmail.com with ESMTPSA id a14sm2287707lfs.108.2021.06.22.11.08.12 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Jun 2021 11:08:13 -0700 (PDT) Received: by mail-lf1-f44.google.com with SMTP id i13so37348115lfc.7 for ; Tue, 22 Jun 2021 11:08:12 -0700 (PDT) X-Received: by 2002:a19:7d04:: with SMTP id y4mr3746251lfc.201.1624385292112; Tue, 22 Jun 2021 11:08:12 -0700 (PDT) MIME-Version: 1.0 References: <3221175.1624375240@warthog.procyon.org.uk> <3231150.1624384533@warthog.procyon.org.uk> In-Reply-To: From: Linus Torvalds Date: Tue, 22 Jun 2021 11:07:56 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Do we need to unrevert "fs: do not prefault sys_write() user buffer pages"? To: Matthew Wilcox Cc: David Howells , Al Viro , "Ted Ts'o" , Dave Hansen , Andrew Morton , Linux-MM , Ext4 Developers List , linux-fsdevel , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, Jun 22, 2021 at 11:05 AM Matthew Wilcox wrote: > > Huh? Last I checked, the fault_in_readable actually read a byte from > the page. It has to wait for the read to complete before that can > happen. Yeah, we don't have any kind of async fault-in model. I'm not sure how that would even look. I don't think it would necessarily be *impossible* (special marker in the exception table to let the fault code know that this is a "prepare" fault), but it would be pretty challenging. Linus