Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3914182pxy; Mon, 26 Apr 2021 12:53:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKePQYKFMPyO2eCYeBb0gcYc3A0N/giuDkAd4k/fc70SKgQymJWx02OtxQa8sjc7b/mdDM X-Received: by 2002:a17:906:858:: with SMTP id f24mr13298467ejd.347.1619466825424; Mon, 26 Apr 2021 12:53:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619466825; cv=none; d=google.com; s=arc-20160816; b=flNB/bDvJ72ImvaYrXOlez2/vFlP+HvKXjnZ0A09uYLr2OqTDtMkhO/kc2py11gWy9 0xa43dOrxyhyMKhMlc+PRYaJZdc5hg+OSWBoHvjGaws6we9WF7/wf8d8f8ZVlhM8PYWi v355zgcbl0GmF+ozLWw41IPM/t6WFTOZXebNy3CAh8T7BXACrBR7MTRojHH27+pmhpK6 EurtL3ZToOPNR0OnD5zRTiw6At50sLco6baKwxaCYQLzn1ua3CLNuIEVBzjHNIpnhF7S MnxsQ9h2oHrjLPOMmo0L97DzuW/0iRt9mxY4nKiJxtBr8vwofE+ZhZpUDkqLXAxeAs6n seKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=XkXy/7XHM+tVDGz4HgSRKjFgp0DrkinJ1Z0Vv5RUGm4=; b=yfhUvKnk88v1hsRG8505LxkKeQZz+5MHrCJUk9wWu5FBRZmKKzG1Qtu3k7w5tCUg5r BE2l65U/zQqcqJfeT2A/+eANyvIl+Du5vialgcffFijRTWwIu8wm/Niv2YP3Ag4T1yKK kKUhVE6r16iQZ1/VKs2M/sd1VsjwykVVrV7NPBDpBXzlW3wrQYkwN6LIy/JrzEFS63Du aa1lOPJNEdRUQk9my9lbwySJNmyTWj5EBDcGAc52ZtORy2o0YlLAJx18Dw1FmlbxX5G1 3bceX6Uanp6XljgZ8Y/8MGZBNwMgOJ2G3W8KbUErIqRr08AbcctmAdOUPeDYINeKNDDN fyzw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a20si9366168ejg.286.2021.04.26.12.52.58; Mon, 26 Apr 2021 12:53:45 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241659AbhDZTxd (ORCPT + 99 others); Mon, 26 Apr 2021 15:53:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241606AbhDZTxd (ORCPT ); Mon, 26 Apr 2021 15:53:33 -0400 Received: from zeniv-ca.linux.org.uk (zeniv-ca.linux.org.uk [IPv6:2607:5300:60:148a::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47A03C061574; Mon, 26 Apr 2021 12:52:51 -0700 (PDT) Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94 #2 (Red Hat Linux)) id 1lb7Hl-008TqF-IE; Mon, 26 Apr 2021 19:52:49 +0000 Date: Mon, 26 Apr 2021 19:52:49 +0000 From: Al Viro To: David Howells Cc: linux-fsdevel@vger.kernel.org, Dave Wysochanski , Marc Dionne , "Matthew Wilcox (Oracle)" , Christoph Hellwig , linux-mm@kvack.org, linux-cachefs@redhat.com, linux-afs@lists.infradead.org, linux-nfs@vger.kernel.org, linux-cifs@vger.kernel.org, ceph-devel@vger.kernel.org, v9fs-developer@lists.sourceforge.net, Trond Myklebust , Anna Schumaker , Steve French , Dominique Martinet , Jeff Layton , linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 01/31] iov_iter: Add ITER_XARRAY Message-ID: References: <161918446704.3145707.14418606303992174310.stgit@warthog.procyon.org.uk> <161918448151.3145707.11541538916600921083.stgit@warthog.procyon.org.uk> <3651951.1619465011@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3651951.1619465011@warthog.procyon.org.uk> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, Apr 26, 2021 at 08:23:31PM +0100, David Howells wrote: > I really need to defer this question to Willy, but as I understand it, > xas_retry() only restarts the current iteration. Referring to the comment on > xas_reset(): > > * Resets the error or walk state of the @xas so future walks of the > * array will start from the root. Use this if you have dropped the > * xarray lock and want to reuse the xa_state. > > I think that the walk returns to the bottom of the tree and whilst xarray > presents an interface that appears to be a contiguous array, it's actually a > tree internally - and 'root' is the root of the tree, not the head of the > array. > > Basically, I think it throws away its cached iteration state - which might > have been modified - and rewalks the tree to get back to the same index. From RTFS(lib/xarray.c) that looks right. Nevermind the question, then... Anyway, Reviewed-by: Al Viro on the xarray-related bits (this patch + followups)