Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2245674ybx; Sat, 2 Nov 2019 15:11:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+PhnmGyK9HTvjDE0+3GsJAY46Bq6ItBMI2zxeRsAM6RzCzWl1ITzds2DT0mpnbjJGuHi+ X-Received: by 2002:a17:906:a38d:: with SMTP id k13mr4698127ejz.213.1572732682093; Sat, 02 Nov 2019 15:11:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572732682; cv=none; d=google.com; s=arc-20160816; b=f5GasvE+uhfofKSdcllByommdQzdHoDMoFJMWDRgX4dHv/Q8SsJv5KIuDjyvprZaiF qnM6n5izeJXP+BF94GL+MnumOiaDTfjLSQSdYNnEpiPXqkE95qgY+jHKfjuwIw4UXnB5 EnPv1XJ8k71n5kIyNxDYiULDW3VdrEMbkE/U9BhuJyM/avIFoPGf5Vvc8EHdU7FpNd5W OtYV0aDOOBR+nPxtw/wR9qsN10CbeT/cXy4//F4TEMp0n6cw1AUYJfXJm3EtzyG4emlF nrZDIh2/jAzJOy+Zny2hSa+ho1jO6ra3UV12C+ZfihBHrpgimKqh3GseSyqjHwdv6seb lDxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=w/G6EKdeKHyA10XyqtoNEQBxMdg61j9NrYNZ+OC/8O0=; b=Rm6yXyvteyDFOBfgumTULxP85MrEb2SNaHvM8x2+7WZ+6cyfGMYCYk405P7AKOAHxc 30AUcafQv1d766TZeP+yCsReUgfcfF7rmlMVjWRA9BhYBs00HAE9p0Y2zIXHmmnNkWhw y7wI6hbRLO35JSYtFmoa13gwipxxfgOUb4tCq5l33L26Y8z1rFIwUXitLmDsHNKWmujL 6GkQ6WpaDuvAWQkGUjJud7Q6x+zjnbHXT7xx/fRa/1bA6XieFKkDMdz9IQlPiiKtPUG5 kLl60XauzY26GTfIIXTkX4HWVeRrlSPmgUuk6sC5/0X/mJkW5cH59mB29o01PTMPCebg VBwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=fiTiutJM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f6si2450126ejx.0.2019.11.02.15.10.58; Sat, 02 Nov 2019 15:11:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=fiTiutJM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727182AbfKBWJb (ORCPT + 99 others); Sat, 2 Nov 2019 18:09:31 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:40817 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726861AbfKBWJ3 (ORCPT ); Sat, 2 Nov 2019 18:09:29 -0400 Received: by mail-lf1-f68.google.com with SMTP id f4so9591651lfk.7 for ; Sat, 02 Nov 2019 15:09:28 -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:content-transfer-encoding; bh=w/G6EKdeKHyA10XyqtoNEQBxMdg61j9NrYNZ+OC/8O0=; b=fiTiutJMMhzHoUatnMj/i0xks6LRSmy0r7/BRz4Oo2NzE6YmtOVVD9WTTp3vp/4Ftl susZvLuDrEDv2Y0EisfAoYbNX8c8ba0GWiLrv658sEXczCmotmacJTxLnXp7ikF2o1OS tH5KGMhlSFlbvPUr5HFJ0KdvbB3vKmi6HfEto= 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:content-transfer-encoding; bh=w/G6EKdeKHyA10XyqtoNEQBxMdg61j9NrYNZ+OC/8O0=; b=UEQLq6n4zUFWWEnP7BCQoDaajLnzbT/zguYpB+IfEgJjniASQSDoKRK14R2v5N1VUA /p5g07SDWVNUc/KQ89zq6nksC2fbJFs9p65FzD4F95xvFpaIePN0XwuxnKS8Q/kUq1+V 58hA2TCA36R4hLExOjlntESNffsxnuwoTSiq7FXkmKg/XsZ3FU6DJ4+YI+qijdrHo3fs XAIyISKxuW4VjwjHKZcyr7B03fNgbTZJIzO0g9tTCcmNG6FWl3LSGO+pEeClBcyP3oDS bgmHz3MaW1stGFI0MB50Dgdx31mgug6CYzoQjKHqsjCHGl5FZlVwd73xVMzNPG2B/80+ s4zw== X-Gm-Message-State: APjAAAXpxvP3jWIqCN0rff+tIu4ALJA9ziljkKEl7TraaRKs8979Fdnb XYIQHx1Pe3VAXU/E9VDijROgVevLmk8= X-Received: by 2002:a19:cc07:: with SMTP id c7mr12033510lfg.107.1572732566786; Sat, 02 Nov 2019 15:09:26 -0700 (PDT) Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com. [209.85.167.43]) by smtp.gmail.com with ESMTPSA id c24sm4385013lfm.20.2019.11.02.15.09.25 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 02 Nov 2019 15:09:26 -0700 (PDT) Received: by mail-lf1-f43.google.com with SMTP id v8so9554963lfa.12 for ; Sat, 02 Nov 2019 15:09:25 -0700 (PDT) X-Received: by 2002:a19:6f0e:: with SMTP id k14mr11937953lfc.79.1572732565288; Sat, 02 Nov 2019 15:09:25 -0700 (PDT) MIME-Version: 1.0 References: <25886.1572723272@warthog.procyon.org.uk> In-Reply-To: From: Linus Torvalds Date: Sat, 2 Nov 2019 15:09:09 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 11/10] pipe: Add fsync() support [ver #2] To: Andy Lutomirski Cc: David Howells , Konstantin Khlebnikov , Rasmus Villemoes , Greg Kroah-Hartman , Peter Zijlstra , Nicolas Dichtel , raven@themaw.net, Christian Brauner , keyrings@vger.kernel.org, linux-usb@vger.kernel.org, linux-block , LSM List , linux-fsdevel , Linux API , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Nov 2, 2019 at 3:03 PM Linus Torvalds wrote: > > On Sat, Nov 2, 2019 at 1:31 PM Andy Lutomirski wrot= e: > > > > Add in the fact that it=E2=80=99s not obvious that vmsplice *can* be us= ed correctly, and I=E2=80=99m wondering if we should just remove it or make= it just do write() under the hood. > > Sure it can. Just don't modify the data you vmsplice. It's really that si= mple. > > That said, if we don't have any actual users, then we should look at > removing it (maybe turning it into "write()" as you say). Not because > it's hard to use, but simply because it probably doesn't have that > many uses. Looking at debian code search, there are _some_ uses (including openssl and fuse): https://codesearch.debian.net/search?q=3D%3D+vmsplice%28&literal=3D1 but I didn't check any more closely what they do. Linus