Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2274034ybf; Mon, 2 Mar 2020 05:31:38 -0800 (PST) X-Google-Smtp-Source: ADFU+vv3wQ4VNUwLPSQof2NxjF5A4hVgxfaY61gPxLdDvhk7DURhfhrTV/CdWet3fSK+v+oqFL/V X-Received: by 2002:a9d:64d4:: with SMTP id n20mr4698481otl.193.1583155898245; Mon, 02 Mar 2020 05:31:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583155898; cv=none; d=google.com; s=arc-20160816; b=zr3/g/nIcnvb4oBK1m+z5EqYzVUObDSNSd1NOlwiwjCQVqG3JinYAFUCvbhBlRQ9t+ 4TbneNWNmAJaGHLbQd5LPs4qLH0EUVgdvFBYPiPgk4zw59lckIhG2rHq8PQz1KYFc+fl PQoSvCvYWxfhfQ3L9v4XbMgfd7FbhjrDLsUw72m8c4zL2IrRgkcWR4Is/Va8LCiza1uq OwQWgAtoJMN5CCPqmVXgW2M7ZSCxcSSOkZ3DjBLc/TUw0UMgkw7j0fZ5l9IvuotaSQDE lwU/RsJG1uQaTR4VbmHO2//BiByc0Mu52eQQSP+uHnrysW1cWNEGsQf+vb5/bs2FyRZK um2A== 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 :dkim-signature; bh=KbznAPswHClelMjNWfA7bjoq++3NKITW9yM0deHTCL8=; b=lhGxKns2L4E5bt+YjOgLuCTYpYPHPsMt5FZ6arDQR1G+LDA0LSAw49cHeptYZdRiEd bE/ueSoxCP0Z4KBFnoJOgGvw6ia+drCfYcC5KYT/hAUFj4GiAGPwI+f5U13aDPrDkgcd Y2b3wcaWtdyau+8h/cGJOYGV1DPWlYIa26McKQ5/qQgPe0qM+xqb9VyeO0Xq0u6HkwXg PqAttfDZuAUT5zJao1XMlvsXlG4h8VRjbjTi/EP/DKFYRi+PRxHI5Q5BvxY6FjsfLD12 cAMGry1ZzP898BUc0uAk2xNAp8lOiFiBTQaHjeSnF4+IfVZJL8vkJeGG3uEwES5J/N+m qoZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=NfbIpzfN; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o15si6035050otp.314.2020.03.02.05.31.19; Mon, 02 Mar 2020 05:31:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=NfbIpzfN; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727644AbgCBNbS (ORCPT + 99 others); Mon, 2 Mar 2020 08:31:18 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:45268 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727361AbgCBNbS (ORCPT ); Mon, 2 Mar 2020 08:31:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=KbznAPswHClelMjNWfA7bjoq++3NKITW9yM0deHTCL8=; b=NfbIpzfNvBcHydrxbk9tgBanS7 DcfczDuC7koH0n08/ebKQMf9c+wJ8d+6IM5W+RyVqbpqYebldd+G1rIsnqPpr71iHAqfjZBNdFUjO yeWOVQd8g0abkjXSEsIUfg5AzTDQanDk8FvfczUPYDgroY45bY242W0IExB4QYBIYS6T0cQKnoMnE Nb5RxIYs3aHdoacsjpg3AZle06jAuHPzq46h/y3Y+mLW25ByGb5l8j2f2gh9T8Q4/c5DZcklzToGl GGLclRoD8ERVj9G/XeLIlnB1R+EjksuLaPQkPc6o0Owlj/RovxFOt+f3SXE0uwyBy4Gv2iCnGMhMV QXCQAouA==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1j8lAD-0007rD-5q; Mon, 02 Mar 2020 13:31:17 +0000 Date: Mon, 2 Mar 2020 05:31:17 -0800 From: Christoph Hellwig To: Goldwyn Rodrigues Cc: Matthew Wilcox , Christoph Hellwig , Ritesh Harjani , linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, darrick.wong@oracle.com Subject: Re: [PATCH v2] iomap: return partial I/O count on error in iomap_dio_bio_actor Message-ID: <20200302133117.GA24496@infradead.org> References: <20200220152355.5ticlkptc7kwrifz@fiona> <20200221045110.612705204E@d06av21.portsmouth.uk.ibm.com> <20200225205342.GA12066@infradead.org> <20200228194401.o736qvvr4zpklyiz@fiona> <20200228195954.GJ29971@bombadil.infradead.org> <20200228203538.s52t64zcurna77cu@fiona> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200228203538.s52t64zcurna77cu@fiona> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Fri, Feb 28, 2020 at 02:35:38PM -0600, Goldwyn Rodrigues wrote: > > Ah, okay. Now I understand what Christoph was saying. > > I suppose it is safe to remove iov_iter_reexpand(). I don't see any > other goto to this label which will have a non-zero copied value. > And we have already performed the iov_iter_revert(). I don't really understand the iov_iter complexities either, at least not without spending sifnificant time with the implementation. But the important thing is that you document the changes in behavior and your findings on why you think it is safe.