Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp829688imu; Tue, 27 Nov 2018 23:38:14 -0800 (PST) X-Google-Smtp-Source: AFSGD/X/pprFFqn7ZVZWKr+0Gl4JjDtKGUY5HET8AUiu84gY6oW+4xkj/xJrmVbG81sHk36HgeSE X-Received: by 2002:a17:902:6ac5:: with SMTP id i5mr22068614plt.134.1543390694138; Tue, 27 Nov 2018 23:38:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543390694; cv=none; d=google.com; s=arc-20160816; b=JGqVp8yyyoozI/YvU92NS7bV1yRSZaRgBf91aRLAjTFC16QcsE3jx1gLgR28sJ3Ofw WMGyVG6C9QinsZVRRE562orQN58RTiXyCfUZcoIdlPSbi6IlKY6ATwYSGyl6+GBG4h3v eLYKUmx8eLyjzCyO3hXv5Dwgh29bIQN5Q4NerSWrr1JnckcG0F/V8ShmL/yaJollry8y x8yw6l1guKrrIdQ7D9torWyoFBrHgjAimiK/jXeOKjAXnEWZoNexHQMPm2pn3r2C7BJ6 cHH17r7rlPP8VLbZmwV+Ik8v5Cd87pHY2fABdnuLln9BW6BMm/qVR1uY8WsHtMHfHltO /p/g== 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:dkim-signature; bh=wVHUGmwz57MgvKdCu4SZmJZ1Rwp/OvXIPNgTJwkHfxQ=; b=JCywkRaP35xA0kwhON7Ma6mwttqdF74qXlbKaDKJqhcd1H+fpguiKW1XgcbzIEBun/ hgHJJIKflCfHOyrf29fgLWI6AZXUg12MSZovhe3swG5U1yEJW9gVob7P0MhiI5d7V9qn GGbAc92/H9z4DppvZO3LKjG682TpQisBGa3LfRTmMJMotv+zhFm5Lu58306BxTyoge3p KrcBNT7fUtyPtQWaEoImpkwyS2RYmPNGqNuXdEy6WjYKw5VfRWnB+troZXlZTzCG6DHe 05LhqtBTCIFHZ2QnJnrEMYK+gCcH13oGaYtfj7P9KVS3NrsFfJrBFxnCQgBp0ZzqvUXy reug== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=KiGsqSpG; 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 a11si7055540pln.78.2018.11.27.23.37.59; Tue, 27 Nov 2018 23:38:14 -0800 (PST) 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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=KiGsqSpG; 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 S1727673AbeK1SiE (ORCPT + 99 others); Wed, 28 Nov 2018 13:38:04 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:43630 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727230AbeK1SiE (ORCPT ); Wed, 28 Nov 2018 13:38:04 -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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=wVHUGmwz57MgvKdCu4SZmJZ1Rwp/OvXIPNgTJwkHfxQ=; b=KiGsqSpGhPgbm2OU35gWVQ6QP 4/u1WT9QPhi5sk7EyNPD686RS049MDQtVVZA7TuoBUtWYtwSe/1E99se5I44MKEy3Hs64AU99+r4I npGNB9/pjmaoWha3js/tIYJKsP0cmkI83kKQI1XMJ06Fl3XaulH8pN0BXhs+9ojAKP2WHStZNHTG9 oqR8IErGKUahXKbsnTh9c85jPw/yhaODl4ov8ApVBd3+mTbnLLMDWFnWZsvcmxYw9Y44l8kJTpPq+ q/lfcxYQuN7g8qX5S7MVASFRV7fpYnnf+09vzyRi2cL5lSNlsyTTZ0nTKZ5czks1UqAW0+2tAwHuM hW2QHfv7A==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRuPS-0003O4-S9; Wed, 28 Nov 2018 07:37:22 +0000 Date: Tue, 27 Nov 2018 23:37:22 -0800 From: Christoph Hellwig To: Dave Chinner Cc: Allison Henderson , linux-block@vger.kernel.org, linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, martin.petersen@oracle.com, shirley.ma@oracle.com, bob.liu@oracle.com Subject: Re: [RFC PATCH v1 0/7] Block/XFS: Support alternative mirror device retry Message-ID: <20181128073722.GB7084@infradead.org> References: <1543376991-5764-1-git-send-email-allison.henderson@oracle.com> <20181128053303.GL6311@dastard> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181128053303.GL6311@dastard> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 28, 2018 at 04:33:03PM +1100, Dave Chinner wrote: > One thing that is going to make this more complex at the XFS layer > is discontiguous buffers. They require multiple IOs (and therefore > bios) and so we are going to need to ensure that all the bios use > the same bi_rw_hint. Well, in case of raid 1 the load balancing code might actually map different bios to different initial legs. What we really need is to keep the 'index' or each bio. One good way to archive that is to just reuse the bio for the retry instead of allocating a new one.