Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp411300pxu; Tue, 1 Dec 2020 14:36:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJxqv5AxRYbvxrW6Jr6DbnXsBRbsLVp7rZwu+RmC938cIG+CDkFrt2beNUmcRU4bD1flzBv2 X-Received: by 2002:a17:906:d20e:: with SMTP id w14mr5368648ejz.479.1606862219624; Tue, 01 Dec 2020 14:36:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606862219; cv=none; d=google.com; s=arc-20160816; b=LhPgEThZxm9jEdBjesnKfuB+TBqg5BQJizEgiaxOQ2Pp21/oZWVOYcVPeUKQbvJLxU f+L4agxxj7+QYmgNnVZMKizR1zNM92Av1kAhYNAEBEqAWqdbwhDaa1PijYTRqPP8AgWh 4RS3tpDvjs9S+yPbV/vgIB6hPbo69Q7JUDcOwMZorBfwVWHgh9gIJHeC4ZgZmF1/Rxxz OreAwxQ7NnYXFU999xT6SNJa/FdSrSjWzgcJMoWx5FKoujGz4/oUY94cxNdIo+odpbt8 UHoBtejVSQJVXgSuz3dGCYQr/g/Z5g72nnKn/zX45G7A4e4K6XtiSO9dyE4xs59arLDn 42fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=W1804/WmEJKiPKMrETIzFsZscClPHYpVI3Xu7UowPbA=; b=YcdrvLr8fy4JR6hACN4E5jXkZxyvn5d3Hv4Q3KtMHYVBNbGP/aakQRHhCbKKvUa+WM T+ykGCFQc9OHDPT19eHu6Shzc0QI5Yb9s8A4vIeAcVoJwpvypmWoCymUoM6+bdfV8hGr IwOwA6okXskqBeMzrwr1Bfir1+zz7PTeMmX1oa5i8fQFB48x0Q67ge1vpGrfywBZUe46 fKDp0y4kLPwqWIO1l6FUFBzKBoiL/LkVngLJFkvsqrNuR31brbRD/S6fK5q2u2pOXPJC XY5rB/Xp71JF9bEvIdvuP1mlczZdvhg0CvWGfAw5GxsPWFlIHOcfA9UYaqtpapJ4avXm +y3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=bMNh4jh+; 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=codewreck.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g31si858083ede.96.2020.12.01.14.36.37; Tue, 01 Dec 2020 14:36:59 -0800 (PST) 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=@codewreck.org header.s=2 header.b=bMNh4jh+; 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=codewreck.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389833AbgLAPRz (ORCPT + 99 others); Tue, 1 Dec 2020 10:17:55 -0500 Received: from nautica.notk.org ([91.121.71.147]:54084 "EHLO nautica.notk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387592AbgLAPRz (ORCPT ); Tue, 1 Dec 2020 10:17:55 -0500 Received: by nautica.notk.org (Postfix, from userid 1001) id 5E97BC009; Tue, 1 Dec 2020 16:17:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1606835833; bh=W1804/WmEJKiPKMrETIzFsZscClPHYpVI3Xu7UowPbA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bMNh4jh+h4C3tOWqO1+UCkfvkfxA/exRkYX3v1IDZEbBJISZZHYQwBBZV4HMD1AxJ l8hTuf3oRSqZJdIK9x+XnEQPfouUtnBRf2ezXUemULE59mWF4OKDAIbJdRBqWrbJpd COrSPeFg1ZdIp2W0mlvbcyo5zto3SNxzKEdElfeyNhh3awF5TnOjas5YJrI6llZ7kt ngjDEAgYJmS9nK4l0WvmmlsoyfdEjByOkOfDWZ3Y5tk2F/+GgdDJKOP7mHb/9DAn5H Y1w04hLHPXBoNGw/jucX4cAyji0OS8fNmq/28ZWrZRhVZYtrXVlM5aQl6Edj0Jus63 3VL0z6h2MJd3g== Date: Tue, 1 Dec 2020 16:16:58 +0100 From: Dominique Martinet To: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= Cc: Eric Van Hensbergen , Latchesar Ionkov , linux-kernel@vger.kernel.org, v9fs-developer@lists.sourceforge.net Subject: Re: [V9fs-developer] [PATCH] fs: 9p: add generic splice_read file operations Message-ID: <20201201151658.GA13180@nautica> References: <20201201135409.55510-1-toke@redhat.com> <20201201145728.GA11144@nautica> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201201145728.GA11144@nautica> User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dominique Martinet wrote on Tue, Dec 01, 2020: > > Since generic_file_splice_read() seems to just implement splice_read in > > terms of the read_iter operation, I simply added the generic implementation > > to the file operations, which fixed the error I was seeing. A quick grep > > indicates that this is what most other file systems do as well. > > Good catch, might as well do that. > I'm surprised you didn't hit the same problem with splice_write? > > I see iter_file_splice_write being used for it on many filesystems, > it's probably better to add both? Yeah, I confirm both are needed (the second for the pipe -> fs side) This made me test copy_file_range, and it works with both as well (used not to) interestingly on older kernels this came as default somehow? I have splice working on 5.4.67 :/ so this broke somewhat recently... I'll add an extra patch with the second and take your patch. Thanks! -- Dominique