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=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 2119BC7618B for ; Tue, 23 Jul 2019 15:24:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E3EED218B8 for ; Tue, 23 Jul 2019 15:24:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729715AbfGWPYd (ORCPT ); Tue, 23 Jul 2019 11:24:33 -0400 Received: from mx2.suse.de ([195.135.220.15]:37616 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726283AbfGWPYc (ORCPT ); Tue, 23 Jul 2019 11:24:32 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id CA6DBAFA9; Tue, 23 Jul 2019 15:24:31 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id B1A39DA7D5; Tue, 23 Jul 2019 17:25:09 +0200 (CEST) Date: Tue, 23 Jul 2019 17:25:09 +0200 From: David Sterba To: dsterba@suse.cz, Anand Jain , linux-btrfs@vger.kernel.org Subject: Re: [PATCH 3/3 RESEND Rebased] btrfs: add readmirror devid property Message-ID: <20190723152509.GG2868@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Anand Jain , linux-btrfs@vger.kernel.org References: <20190626083402.1895-1-anand.jain@oracle.com> <20190626083402.1895-4-anand.jain@oracle.com> <20190723145553.GE2868@twin.jikos.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190723145553.GE2868@twin.jikos.cz> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Tue, Jul 23, 2019 at 04:55:53PM +0200, David Sterba wrote: > On Wed, Jun 26, 2019 at 04:34:02PM +0800, Anand Jain wrote: > > Introduces devid readmirror property, to direct read IO to the specified > > device(s). > > > > The readmirror property is stored as extended attribute on the root > > inode. > > So this is permanently stored on the filesystem, is the policy applied > at mount time? Found in some previous version that it's not permanently stored, so scratch that. > > The readmirror input format is devid1,2,3.. etc. And for the > > each devid provided, a new flag BTRFS_DEV_STATE_READ_OPTIMISED is set. > > I'd say it should be called PREFERRED, and the format specifier could > add ":" between devid and the numbers, like "devid:1,2,3", we'll > probably want more types in the future. > > This is the first whole-filesystem property so we can't follow a naming > scheme, so we'll have to decide if we go with flat or hierarchical > naming with more generic categories like policy.mirror.read and similar. I'll have to go through the past discussions again, there was some feedback regarding this I did not take into account.