Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4034907rwe; Mon, 17 Apr 2023 07:09:23 -0700 (PDT) X-Google-Smtp-Source: AKy350YgYUNfmv1SUZgX11SU98l2FgExWanwNzrxA1+ttgt0f/esqOt1y4b7RdyQjLezwQ1wKnKT X-Received: by 2002:a05:6a00:887:b0:627:f9ac:8a33 with SMTP id q7-20020a056a00088700b00627f9ac8a33mr23258828pfj.13.1681740562902; Mon, 17 Apr 2023 07:09:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681740562; cv=none; d=google.com; s=arc-20160816; b=rbf8dydJtgZ9HAaSXZA63+CKe5/fcXpY5j96iqtHIFSgc6+HEHjWFJTxq29bt2w2A/ b5H8MaumBFKXI7S+XNxTO6JulDPjECeI4ZUiEWbBI1Ab/rCXKMicmkIr0fRGYNEs5QvF FyMIJg+uG3gyvF1NRhe9dtlVQdUUNMxA18JsYlkrUIyMW0YY5atp5JvHg+uTbaAxANgI Dcnt++JOkr8+sqSBJeB/kwAgyU5h8OBApZ+PpSJGCNmsxFol47pGjAHPBhRtqkDntk+R fYVveNxDAANLnWTaMzyGlvX2lMmVbJ3laHmpyycfyx/deNrfo+pzs0yWwpfEk7vFNkQ+ upNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:message-id:date:content-transfer-encoding :content-id:mime-version:subject:cc:references:in-reply-to:from :organization:dkim-signature; bh=x3k70U2wqMYkVPZDRioWTe3Rvp0nYCtXWyD8EZYgUNA=; b=fFbZMIPINbPJoh6L5IVceLRYgRjf5+oh5+yCOV0IJvHK4U1+8zLQmk/uvLVyePC4tZ ssTBa59tnREuqcvKJPLu7ZUdXocZtThxeL3Wsd8muJCUSbov3A310mkJojCF0sFxU23B gOKSxWeddRQ/jEp6wcZyPRGheNwQeIhjKqQvB0yeJRAzsEXFHuEDBUfrhfDgg7DNYAVt w8fUJ9kQswGhhKPoFGwppuJyhB11MZDkuSEE1HyfH+ETL74LpNlSR2xZN8wonqct2RiC B5CF9HB6R+f6qidomgrfQ8HIWXBLMaKZPCP4h8s5YHNmLcwWE3j7aCALcZuron1fe84z k3ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@redhat.com header.s=mimecast20190719 header.b=NAYPZr7N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y3-20020aa793c3000000b0063b7b7712a5si6653170pff.304.2023.04.17.07.09.08; Mon, 17 Apr 2023 07:09:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@redhat.com header.s=mimecast20190719 header.b=NAYPZr7N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231211AbjDQOIn (ORCPT + 99 others); Mon, 17 Apr 2023 10:08:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229750AbjDQOIb (ORCPT ); Mon, 17 Apr 2023 10:08:31 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 149B81FDE for ; Mon, 17 Apr 2023 07:07:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681740418; h=from:from:reply-to:subject:subject:date:date:message-id:message-id:to: cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=x3k70U2wqMYkVPZDRioWTe3Rvp0nYCtXWyD8EZYgUNA=; b=NAYPZr7NSoQpIvXJdZvMz59zi+gZoJ+u16ZA8hUWQALCE/LVP2dVsm60shnXKKWgbFfET1 GQJ9ZWR5qX0Wnx+hXeOYjKsYg61jQcYLJkzZDHvviap5hvYRP1iQr+lqoDfjdNyqQNQyA/ RPyvbfNbBVUBMLAYrrWmvAhtnFm+DZ0= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-121-mlfIU9LYMH6A2Uv9mJgbMw-1; Mon, 17 Apr 2023 10:06:50 -0400 X-MC-Unique: mlfIU9LYMH6A2Uv9mJgbMw-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 64CCD8828C1; Mon, 17 Apr 2023 14:06:49 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.67]) by smtp.corp.redhat.com (Postfix) with ESMTP id 022D5492B0D; Mon, 17 Apr 2023 14:06:47 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <1551344.1681739138@warthog.procyon.org.uk> References: <1551344.1681739138@warthog.procyon.org.uk> <20230413182542.1133335-1-broonie@kernel.org> <0c6b661c-f7ff-cf12-b7f0-00b6b2f1317b@amd.com> <3c4b9025-2667-ca8c-7427-502068b8168e@amd.com> Cc: dhowells@redhat.com, Jens Axboe , Ayush Jain , broonie@kernel.org, Linux Next Mailing List , Linux Kernel Mailing List , Santosh.Shukla@amd.com, Kalpana.Shetty@amd.com, Narasimhan V , sfr@canb.auug.org.au Subject: Re: linux-next: Tree for Apr 13 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1558439.1681740407.1@warthog.procyon.org.uk> Content-Transfer-Encoding: quoted-printable Date: Mon, 17 Apr 2023 15:06:47 +0100 Message-ID: <1558440.1681740407@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MISSING_HEADERS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org David Howells wrote: > The problem might be summed up by the following snippet: > = > openat(AT_FDCWD, "/dev/loop0", O_RDONLY) =3D 3 > newfstatat(3, "", {st_mode=3DS_IFBLK|0660, st_rdev=3Dmakedev(0x7, 0), .= ..}, AT_EMPTY_PATH) =3D 0 > splice(3, NULL, 1, NULL, 1048576, 0) =3D 0 Ah. In filemap_splice_read(): do { cond_resched(); if (*ppos >=3D i_size_read(file_inode(in))) break; but i_size_read(file_inode(in)) for a blockdev returns 0, it would seem. = What should I use instead? David