Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1813387rwe; Fri, 2 Sep 2022 04:23:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR4bM9xH8h6gfAiVdbuddICgzvScPji1s4HdNkRO9TcFUcxdovDJdTkpF0vGK/07xTt8y38Z X-Received: by 2002:a17:907:3d90:b0:741:346a:6e46 with SMTP id he16-20020a1709073d9000b00741346a6e46mr22028951ejc.279.1662117827516; Fri, 02 Sep 2022 04:23:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662117827; cv=none; d=google.com; s=arc-20160816; b=gFbJU6f/ZFdpSEP99/GZ3AMLQbeK/65X3e/HlznD2BC5p/MO/PQ1f/PEuCpl1thQWq H9kSjCwoqDbMkW2R27CuO7DMMgxKMs40qZuqfI+EziSplPVzQhMY2KDrNzH6Mb7bnxmb U/GbSQUVyXoniXQxiFYUgqphgKSlTCEmTEwtlViJuxzaal0Hz/tovDuIcBTYk04U+56r Wa5z9yZHkGD0sOnpLx6S8xsyv0aprOstDqVLUcJYlKE8fyxN/vTkzWLXxRFQPN6G/49N udrs7VROJyiLxyZiRjoOi0CMyfzohr+Ba7wdGeN3fv8YVY0t1Nyhw8eTsE/c8VNkOHOP 7MfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=+NMpbPFe8fp8R+B93WiLknkoUnpXkg4bwQ8Cau7P/jw=; b=Casxg1pbiOn4qL6CW2Cz9B5KklnZfbIFf2TMI7wtLQRt+kqakiZSpE0r1/tlv8cvyX x2D5WADHyDUy9sfHIQ9BEA+Epe3Js+z+qtI/Ko74kaS7VO0L3trFKxOV9yknevZJRhDl iVz4kLoo/EinujAlXbhHlVHUN3xtJMXk11096s5qCFyVZ68ywXKKzL1vezZbTD6JY59/ wFdgFRyW3DGMvuRA5D6OhYMCQv+QRdUNIL94eLDO4ytjtMLtKvBHdHAIToaVE/uin/nu B9fvlNG4vysloY5EtrDO79lmVjTJbUtd++eSkXcVwcvYc1mArKH693auVlsEDOjIN9yG 1HQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=eUT3bNHx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f8-20020a0564021e8800b00445f82ad45csi1850599edf.221.2022.09.02.04.23.13; Fri, 02 Sep 2022 04:23:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=eUT3bNHx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235434AbiIBLAe (ORCPT + 99 others); Fri, 2 Sep 2022 07:00:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235137AbiIBLAc (ORCPT ); Fri, 2 Sep 2022 07:00:32 -0400 Received: from smtp-fw-33001.amazon.com (smtp-fw-33001.amazon.com [207.171.190.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E75C3FA1E; Fri, 2 Sep 2022 04:00:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1662116430; x=1693652430; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=+NMpbPFe8fp8R+B93WiLknkoUnpXkg4bwQ8Cau7P/jw=; b=eUT3bNHxAbf3EzctDr+zA5d6Z4YI73334F2O5qejKqg7rKmlHlG1RqcR Q7GFw2Us3C1uySQyH5MoWE3btt8BYlBBPQ9NB4nuF+idKgMVWkFnSXkrT xeLkzvatBQ/O4HUf+wn1ImNmXyf3yQctZZcInR/xi3Ng+3fwRG0jllDBI E=; X-IronPort-AV: E=Sophos;i="5.93,283,1654560000"; d="scan'208";a="222899704" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-pdx-2b-22c2b493.us-west-2.amazon.com) ([10.43.8.6]) by smtp-border-fw-33001.sea14.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2022 11:00:13 +0000 Received: from EX13D05EUB003.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan2.pdx.amazon.com [10.236.137.194]) by email-inbound-relay-pdx-2b-22c2b493.us-west-2.amazon.com (Postfix) with ESMTPS id 30D8345037; Fri, 2 Sep 2022 11:00:12 +0000 (UTC) Received: from EX13MTAUWA001.ant.amazon.com (10.43.160.58) by EX13D05EUB003.ant.amazon.com (10.43.166.253) with Microsoft SMTP Server (TLS) id 15.0.1497.38; Fri, 2 Sep 2022 11:00:10 +0000 Received: from dev-dsk-mheyne-1b-c1362c4d.eu-west-1.amazon.com (10.15.57.183) by mail-relay.amazon.com (10.43.160.118) with Microsoft SMTP Server id 15.0.1497.38 via Frontend Transport; Fri, 2 Sep 2022 11:00:09 +0000 Received: by dev-dsk-mheyne-1b-c1362c4d.eu-west-1.amazon.com (Postfix, from userid 5466572) id D42F2275A; Fri, 2 Sep 2022 11:00:07 +0000 (UTC) Date: Fri, 2 Sep 2022 11:00:07 +0000 From: Maximilian Heyne To: SeongJae Park CC: , , , , , , , Subject: Re: [PATCH v2 0/3] xen-blk{front, back}: Fix the broken semantic and flow of feature-persistent Message-ID: <20220902110007.GA100460@dev-dsk-mheyne-1b-c1362c4d.eu-west-1.amazon.com> References: <20220831165824.94815-1-sj@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220831165824.94815-1-sj@kernel.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 31, 2022 at 04:58:21PM +0000, SeongJae Park wrote: > Changes from v1 > (https://lore.kernel.org/xen-devel/20220825161511.94922-1-sj@kernel.org/) > - Fix the wrong feature_persistent caching position of blkfront > - Set blkfront's feature_persistent field setting with simple '&&' > instead of 'if' (Pratyush Yadav) > > This patchset fixes misuse of the 'feature-persistent' advertisement > semantic (patches 1 and 2), and the wrong timing of the > 'feature_persistent' value caching, which made persistent grants feature > always disabled. > > SeongJae Park (3): > xen-blkback: Advertise feature-persistent as user requested > xen-blkfront: Advertise feature-persistent as user requested > xen-blkfront: Cache feature_persistent value before advertisement > > drivers/block/xen-blkback/common.h | 3 +++ > drivers/block/xen-blkback/xenbus.c | 6 ++++-- > drivers/block/xen-blkfront.c | 20 ++++++++++++-------- > 3 files changed, 19 insertions(+), 10 deletions(-) > > -- > 2.25.1 > I've tested this patch series in the following ways: * Only applied the blkback patch but not the blkfront patches * Only applied the blkfront patches but not the blkback patch * Applied both All scenarios worked, so Tested-by: Maximilian Heyne Actually I also wanted to test changing feature_persistent and try reconnecting but I don't know how this is done. If anyone has a pointer here, I could test that as well. Amazon Development Center Germany GmbH Krausenstr. 38 10117 Berlin Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B Sitz: Berlin Ust-ID: DE 289 237 879