Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1135867pxb; Wed, 4 Nov 2020 00:31:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJyY6a+u/UlrTMRYbQ4hlQu5/zhlYKKS2+DeX+6X0VYDDZKun2jxfOCC10UPqeLGzdO3S4ja X-Received: by 2002:a05:6402:b68:: with SMTP id cb8mr4335202edb.198.1604478701627; Wed, 04 Nov 2020 00:31:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604478701; cv=none; d=google.com; s=arc-20160816; b=R97rgCX5WNNn1oEwjkqU5BqiQ1NfrY252iZetBJBkHz6h7lK8nklVerku2VEILgiyn qXc5TDapBuAYuuBCyI2j9oGdbk2UVxcTkAX9n41iHJlX2AbDAVSqVrzguZ+n7CqdKaA4 8he35xk1PfT1t9AgullOuncWtMkIFMW4Pn2GSngT54pHXhUiO/TtHdl5UpypYjyWUk9R 2l4yNyV17U8MFLA6bCmvJjG6DxhrDG5nB2ZQImrgrRKludMbojO7gtiWkaIZ5qksPybB tk98LkMZfewZqQXF3yTpfIczQjeEqdEGQQggl8cziQ2wovmaKpEmt0QY85TDGAVxpjRA Migw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=bmdptjIF0lAau/p6uQt+rPSQHQfQ0uoI3u2UOTPClt0=; b=k0sYN1YOz9auLxKOO9G/Mmn6JxSnoQsshWxjMrBm2IIdtZ3S1/M7U/MmY2XO4VVLeU n9NI8zta80X14pk8XKcGgZ+BP9FGiGiky6/gUJA+jC9Q2gqLg1DcaqCSjXR81C9ET+N9 m/7hwo1mqGWnXCoSbZX4huWjE22y63qJv5JKQUrzex+5xT28YGbEPV3jZsow0Hgp7Tq3 QS2ThFYe2TtrikxHjQ5tfR9h95ciru33QZylYPtzkunZzGVobqDnPkLwHHlLJCGAfx9O 0ZdaCRFpXTOG9NZZz0Ouyz82wu56sStVlL4ZdJ5pqYd0jjlEpdHXl7M6uH4GtRxZOqzc 7qjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=YILuwTbt; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a13si955858edk.386.2020.11.04.00.31.18; Wed, 04 Nov 2020 00:31:41 -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=@infradead.org header.s=casper.20170209 header.b=YILuwTbt; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727852AbgKDI35 (ORCPT + 99 others); Wed, 4 Nov 2020 03:29:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725812AbgKDI35 (ORCPT ); Wed, 4 Nov 2020 03:29:57 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E47C8C0613D3; Wed, 4 Nov 2020 00:29:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=bmdptjIF0lAau/p6uQt+rPSQHQfQ0uoI3u2UOTPClt0=; b=YILuwTbtH46kkbIeRhcozcPXiP btzB4KOm18QqR4S2s+hRlWsLB5xC5htsMVjOedL+71sEVit67LnwudPCjuTGBkZzQep9ujhnHQg2I K+rbWSmwvz7rfbZ4SFU4mUM6pGC6Pu8LiiCpP3bmkwmtRmLywbBOpZFQ2sPJe9aNLHoPd6ujS6hgR WyFmaTJrX4UIYYjIdLovXDXOQ/vRzvdM0O2Wr1urmKYVJCcS0ASf9ke5BZSAWIQlqts5etkDhkUpy 5VKgRu0cXCmNFmKvSOGPrjc6rEOdua9CXlPIhilhWg/ZtwX261hZMgkz4EID0qVbKs7cJ7fgReISP 3iKl9XZw==; Received: from 089144208145.atnat0017.highway.a1.net ([89.144.208.145] helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaEAw-00048Q-MJ; Wed, 04 Nov 2020 08:29:51 +0000 From: Christoph Hellwig To: Al Viro Cc: Greg KH , Linus Torvalds , Alexey Dobriyan , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: support splice reads on seq_file based procfs files v2 Date: Wed, 4 Nov 2020 09:27:32 +0100 Message-Id: <20201104082738.1054792-1-hch@lst.de> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Al, Greg reported a problem due to the fact that Android tests use procfs files to test splice, which stopped working with 5.10-rc1. This series adds read_iter support for seq_file, and uses those for various seq_files in procfs to restore splice read support. Chances since v1: - only switch a subset of proc files to use seq_read_iter