From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9AAFAC56201 for ; Thu, 12 Nov 2020 01:32:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 224CC20791 for ; Thu, 12 Nov 2020 01:32:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="IRSGHIcC" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728502AbgKLBcv (ORCPT ); Wed, 11 Nov 2020 20:32:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727188AbgKKWqp (ORCPT ); Wed, 11 Nov 2020 17:46:45 -0500 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 183DCC0617A7 for ; Wed, 11 Nov 2020 14:27:22 -0800 (PST) Received: by mail-lj1-x242.google.com with SMTP id h23so3833640ljg.13 for ; Wed, 11 Nov 2020 14:27:21 -0800 (PST) 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; bh=wLOabNKoNSfJ8YlJALUX/HSF7x5smlTVZLW77pgDXxE=; b=IRSGHIcCR371rgKVLVF0IWNeekp7RPE0tq0jXgz/fCbjpYkabNrYN8yq8L6uP1wNLm iQV9DdRexGpEEOJh3X5FNLU9tmqj7DBi9Jq9H9z+BIkxguhTupVA5zY3gmTZBfYvUSdr RBkqVcAV8M5WnEewVOMQWCUC58Swu7KJUcmrU= 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=wLOabNKoNSfJ8YlJALUX/HSF7x5smlTVZLW77pgDXxE=; b=BI9UfB6TkepvKbqySm+0HkqCXapBWoYztTHoYnHJPh2DzsFPB3b02scfjgXBytG5QA kgn3LxahzOE6u+Hv6aloN2zSEQ9VnTpuCZSDhXiOqiyQc7v+kmXhlFZZc5zjdiNcxtIm n/mddarvd4q4UgzTcOFl3kRq/ltm2/+IH+ni0RmiJScCIUO0XgOxJezEYnrjevOaPyR0 EfoEuSsJ74xTUuMm1MJKUIDKVe3eG6Ab9HQO31T/JRKLM+HFpiP0cmH78Ah8kGsypnDy OVKKpmVTNxKXe2uQAVUyPQgMCyTGBpf9zSXoUU5tvkRYVxF9NUkJqlmn7alJ6TRe2Dl6 igDg== X-Gm-Message-State: AOAM5325o2EENaQVZaWXXBs4mRqJzhEY/7vxT2Jf4CNy1WY2iXe0PGBm TJIiqi4H4bmfC8DEJRi8pW2FLKkxYJzhFg== X-Google-Smtp-Source: ABdhPJxVRCvEugz1Vxcjw2TXgbk/SCcHSu7uDL4WGKy77UxKbavhrG+vJSmoUCTNgk88c6/jcx0TYA== X-Received: by 2002:a2e:9a43:: with SMTP id k3mr11916144ljj.69.1605133640112; Wed, 11 Nov 2020 14:27:20 -0800 (PST) Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com. [209.85.208.177]) by smtp.gmail.com with ESMTPSA id r3sm347969lfc.85.2020.11.11.14.27.18 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Nov 2020 14:27:19 -0800 (PST) Received: by mail-lj1-f177.google.com with SMTP id x9so3853865ljc.7 for ; Wed, 11 Nov 2020 14:27:18 -0800 (PST) X-Received: by 2002:a05:651c:110:: with SMTP id a16mr12194059ljb.285.1605133638694; Wed, 11 Nov 2020 14:27:18 -0800 (PST) MIME-Version: 1.0 References: <20201104082738.1054792-1-hch@lst.de> <20201104082738.1054792-2-hch@lst.de> <20201110213253.GV3576660@ZenIV.linux.org.uk> <20201110213511.GW3576660@ZenIV.linux.org.uk> <20201110232028.GX3576660@ZenIV.linux.org.uk> <20201111215220.GA3576660@ZenIV.linux.org.uk> <20201111222116.GA919131@ZenIV.linux.org.uk> In-Reply-To: <20201111222116.GA919131@ZenIV.linux.org.uk> From: Linus Torvalds Date: Wed, 11 Nov 2020 14:27:02 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/6] seq_file: add seq_read_iter To: Al Viro Cc: Christoph Hellwig , Greg KH , Alexey Dobriyan , linux-fsdevel , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 11, 2020 at 2:21 PM Al Viro wrote: > > Something like below (build-tested only): Apart from my usual "oh, Gods, the iter model really does confuse me" this looks more like what I expected, yes. Considering the original bug, I'm clearly not the only one confused by the iov_iter helper functions and the rules.. Linus