Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7133074pxb; Thu, 18 Feb 2021 02:14:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJy9IOVWYFTgQB/TdWeXoe3KMKV6YAMOa9TJiBnsVv0kvjcULIhjmCHq57yhNYjt3Fmi3Z9Q X-Received: by 2002:a17:906:858b:: with SMTP id v11mr3329351ejx.179.1613643252248; Thu, 18 Feb 2021 02:14:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613643252; cv=none; d=google.com; s=arc-20160816; b=w23MKYpiK/SktuAj/Pc7nSXd2l6v3heSKPnG/zdehkioZueoGJDpd0I6XqXglWwKoM 0B0Q+ZHbI8kTPTahd/V2oR/LAO1BXNgp1e9qJN3LG1iobZy1qYbTZINHZPn9uNnKocRe fcsoBH/c/81s/jv6UpXT/i3AZr0Kg5zle2HQ7IziTm5KbNXR06oljBp1pA7HI82201KZ gV3UUtNQBmWJvL/g7mBCP5I3sP6iPV8NB+tlKjafpQdGrSiS5Z9ANe5xdvfmSI/vgDKN F4tPLD62g5iG5CvImd6bHxzwDi/HKDz6my1/vkHUaPdrKMrQh/VX8/WQmAgXa//SuJA+ wJAw== 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=OgQOiOPnq0DRvI2eZdQvsHnaIaMA+0qyu71WaKASe+E=; b=O1IbjWWIMmiV7xwC+l3jJZIGT3pnMYUCs0VN+Q39Yg0Aqgp1qqod7d2jx1Dn+lyTI4 Uvr/SQPoQLPwvbFtBN3m/7g7ZGFebqR185sY3RFAo+Ou48oV0Mif8lsRRCRvcjtJNr8M qSYloTzkLRnnnztsd+AUrGkKilUwyhB7WEPcMgms22hsieGLi9Mkxu03OX8ynPIPYCYp rojV/eY8cayGy5QxqjHbI+7kqkBZBLg15+ZEb+EXDFSYz4pw/vGG1qzWbyRe6gqDb9Ez DeC3klIGgJLVD6a8Ra3iZcw7BOfduLUCBZbSKmBE71yNgX4Umj4v3Fv3cVmH2qHGL/n0 F3xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KIj9uV24; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jg5si3017306ejc.490.2021.02.18.02.13.37; Thu, 18 Feb 2021 02:14:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-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=@gmail.com header.s=20161025 header.b=KIj9uV24; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230396AbhBRKCZ (ORCPT + 99 others); Thu, 18 Feb 2021 05:02:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231450AbhBRJMu (ORCPT ); Thu, 18 Feb 2021 04:12:50 -0500 Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E849C061756; Thu, 18 Feb 2021 01:10:12 -0800 (PST) Received: by mail-il1-x12f.google.com with SMTP id a16so852681ilq.5; Thu, 18 Feb 2021 01:10:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OgQOiOPnq0DRvI2eZdQvsHnaIaMA+0qyu71WaKASe+E=; b=KIj9uV247HXRj8/OdXi7y7ObktVMiQkfY1zBawc3yoqptXXOeQTlt477Lr0LhrSGE9 8E18Bxidf9al2BaaL4xQC/16sB1fQQ8/NXtUzgFeb2Tl+lMz/7TeP3pg/dihjZBohG7+ Se3QMaNt+hpWGzO7FbyL236gNrhjqG1KqA1QlNO2w/DwML7TfhYsXFaNCZB4laQDaY+F oZkmK4iDfnSJRr1w54d303Bkhc5/PFzSLgJ4odjLMS35jswywGq2QGEUU14unumiNnAN qpHtfXb5gITTwAbd5vZpb18FanWx4e2pmi6XDDLIZ6epHqg+bRzfy3Pt7kKhL+hAezW9 +e+g== 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=OgQOiOPnq0DRvI2eZdQvsHnaIaMA+0qyu71WaKASe+E=; b=kSJOO/Y2azAc3u998nFl7nQ5qNLFNurdH8g+1BiNILdwFp3z/Cbg78Ec3DCYtGUTkW G6TzrJ0qfnjiMtaLJB1p0nZTfLWl5xll32yNzUn9mekD6hDBSvR4+N6ZtNozRa5BeH+D w1SuBK6ayuobWjB6Z0AK5RkI2a5d+yAAx5Vv7QlOvQUZfs03XWVp2Zud57dUClRjg31g PjowJCqgQp9j2ZW+3OKKMQ3KrS5Xrclw6lIdYTSdGpYc/0Fhnm9+tLiE6TXD5jIjyJ7L M0RAANv/Hzs9Uim4X99ye5dx1RKvxfvr0kplb7o0Csom3MGhMJ5N2XaNUQM+2URgCZOa JOtA== X-Gm-Message-State: AOAM530FXwNwJvZiX1Idh5R0/zAXMxrgje0AjryZmgQmZWm9alLI+PHZ 5vQd2MnwpuMmkt2hwpITPklgq8+0qjAuO5FYR6o= X-Received: by 2002:a92:8b89:: with SMTP id i131mr2975061ild.9.1613639411616; Thu, 18 Feb 2021 01:10:11 -0800 (PST) MIME-Version: 1.0 References: <20210215154317.8590-1-lhenriques@suse.de> <20210218074207.GA329605@infradead.org> In-Reply-To: <20210218074207.GA329605@infradead.org> From: Amir Goldstein Date: Thu, 18 Feb 2021 11:10:00 +0200 Message-ID: Subject: Re: [PATCH v2] vfs: prevent copy_file_range to copy across devices To: Christoph Hellwig Cc: Luis Henriques , Jeff Layton , Steve French , Miklos Szeredi , Trond Myklebust , Anna Schumaker , Alexander Viro , "Darrick J. Wong" , Dave Chinner , Greg KH , Nicolas Boichat , Ian Lance Taylor , Luis Lozano , ceph-devel , linux-kernel , CIFS , samba-technical , linux-fsdevel , Linux NFS Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, Feb 18, 2021 at 9:42 AM Christoph Hellwig wrote: > > Looks good: > > Reviewed-by: Christoph Hellwig > > This whole idea of cross-device copie has always been a horrible idea, > and I've been arguing against it since the patches were posted. Ok. I'm good with this v2 as well, but need to add the fallback to do_splice_direct() in nfsd_copy_file_range(), because this patch breaks it. And the commit message of v3 is better in describing the reported issue. Thanks, Amir.