Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7228307ybp; Wed, 16 Oct 2019 05:49:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwRa0HMktRS9y0UcweLHlczBRveLN4o/1KV3M4EzpB0rCLS7U0tBzYfMTDL9Jv5LHKSNsJj X-Received: by 2002:a17:906:5407:: with SMTP id q7mr40618338ejo.24.1571230152288; Wed, 16 Oct 2019 05:49:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571230152; cv=none; d=google.com; s=arc-20160816; b=r4af73fr94U7niKAvB6meBt5eVerNayuvzEhsgu1adHBe7aHNODuOJULNg7lVcKE9J gf2mBAXwitA0hj8CV+B7BPXjNT3AcajwgySM624/HPq+8AVX5M8BfD26qUm96yUN9xVz dyKE3VP+2f3F54ggY3VcplbbhiNjmnrkBw/OluoWWvxQ/+oalAG83bO9epC3R8CPjJuz wQTWNJlYzvJDvypQOHHBv1m31YoX+gDI2nrmVydLvh8YjQGYL8uHVcnU78L9PyYL1Yik x8LzxqcS6F1rk8WR70SJBCImwdmabXuJu9bpYShbrPCCFUBp9JnjEFST+SKduIsUwNNl Zzkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=NvDOpyb+nTpH8UlAxhiJWhjTRaeIxInPYjA2Qx2DCPY=; b=lH0WyyffOF/Y8ka8R6wUkEWGuzg+JP3QOCbSCxXVoaKwhcU/P1KbeD+UZSzlzwhubI 4Ch4dkkniiVPqunpGxnFbPFGccLEN/sKn2izxrWovQpfg2h/Mx7RbfyuvRgqMKcnJ+4C wRGU1klUzS3i42yuaL55ypz9zvPtfm+ORV3tniQhVaxafLeY3GnaH7apOfpepE4yNu/F xBR3ryaacYpyOywh3o/Ab/oHpJ5McXYW/iiTtpCYdunU+IQbOn58y3jxUJtrB9A0jGIP uHLScZX5Puwr8iOX3pR+jdYy4J/rpmIQlG4C7i7LfgkW5469MpoS94nzI9lYP4U9CBrB O+dw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 k1si17115195ede.255.2019.10.16.05.48.49; Wed, 16 Oct 2019 05:49:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404052AbfJPIKO (ORCPT + 99 others); Wed, 16 Oct 2019 04:10:14 -0400 Received: from verein.lst.de ([213.95.11.211]:59621 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391446AbfJPIKN (ORCPT ); Wed, 16 Oct 2019 04:10:13 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 6964768B20; Wed, 16 Oct 2019 10:10:09 +0200 (CEST) Date: Wed, 16 Oct 2019 10:10:09 +0200 From: Christoph Hellwig To: Dave Chinner Cc: Christoph Hellwig , "Darrick J . Wong" , Damien Le Moal , Andreas Gruenbacher , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 09/12] iomap: lift the xfs writeback code to iomap Message-ID: <20191016081009.GA24284@lst.de> References: <20191015154345.13052-1-hch@lst.de> <20191015154345.13052-10-hch@lst.de> <20191015220721.GC16973@dread.disaster.area> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191015220721.GC16973@dread.disaster.area> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 16, 2019 at 09:07:21AM +1100, Dave Chinner wrote: > > +/* > > + * We implement an immediate ioend submission policy here to avoid needing to > > + * chain multiple ioends and hence nest mempool allocations which can violate > > + * forward progress guarantees we need to provide. The current ioend we are > > + * adding blocks to is cached on the writepage context, and if the new block > > adding pages to ... , and if the new block mapping So reviewing this comment I disagree with the change. We add on a per- block basis to the ioend, not a per-page one. Similar for the second one it is the block that needs to append (which is defined by the mapping, but still..).