Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp752621rwe; Wed, 31 Aug 2022 10:18:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR6tYcMnHqKnJXB0tvof9r8GjR4HDLwzG2+3N6OY3NeWu1b3fuId6/oTHc/CJBPo/rO8nj70 X-Received: by 2002:a17:903:22d2:b0:174:dd99:a590 with SMTP id y18-20020a17090322d200b00174dd99a590mr13498887plg.26.1661966333572; Wed, 31 Aug 2022 10:18:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661966333; cv=none; d=google.com; s=arc-20160816; b=roR5AL6inaMXs3B8AG4kvBO9NVsJLd+3P13oDaqshJZhvJLXIBxrzhJPld9MZ9rlqH uiwOrcmIo0YFdMroxRGj1G9sCNuepmMunjvkzVvZByqYOS9EWKvP3jRS9Rz8pX6YCn4A ZHy91Q2Nr3HYuv/xco3Hvmt7uYFx2j0XUrP57RRPiNrBBgEKDePkXbWKzBuLNhEEtlTM wgNOm/Vuc5LXiifPsxMGyN79O4xfePEjvuP3xInMiLz2ytROCF1E1F3e/+3hFKTA9inW EiqdJtnQvh9fuT18FzFCqvxhF1p0STrCJRJ8XaRUv9YyifHRLDLexHKRVvoqTXA32zLE bHfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=F7N+irK9slcdAEQE/MOogOzCtfDp1JS44RHr/MKVVPQ=; b=SuBlSCSLMwybZKDl9UD5mCe2gQwMQTIdFtKcuxn3gCWJFDW3NB7V67J3r1YGfSzo7p vXN/zBYNqPg97sChpT6LesqKL08eyvOL7SrBs4NLdP9BDN36LyrBLXmdj54bx+7a9FmC z5TrYHJo4hWE3Ij8Hst0WnBxV70D3vUA1zAk3SCwWpNCzN94NPJXiFJ0f6ThxklgtRFS kN7OVz6yFS3BRUChvLSNn8tvqStuSTYa3sWpUHbTVmHRH2g+EIyDhpgO1iOR+Wftik0n Twx8JBSNKwWFNRrNmchb7yyjT+51hpNagE6MmqqbTBOBHgM9p6Rm1LW/RshZhNV3VPLB ScuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=coCKVdhz; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lb2-20020a17090b4a4200b001fd7b0552b0si2828432pjb.37.2022.08.31.10.18.40; Wed, 31 Aug 2022 10:18:53 -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=@kernel.org header.s=k20201202 header.b=coCKVdhz; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232412AbiHaQ74 (ORCPT + 99 others); Wed, 31 Aug 2022 12:59:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231682AbiHaQ7h (ORCPT ); Wed, 31 Aug 2022 12:59:37 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31D30E0FD4; Wed, 31 Aug 2022 09:58:32 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id F1F19CE21A7; Wed, 31 Aug 2022 16:58:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 38422C433C1; Wed, 31 Aug 2022 16:58:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661965108; bh=tZfN22S1Lxl3tbUEuVPncXdtkO44166H42D2+eKQcnY=; h=From:To:Cc:Subject:Date:From; b=coCKVdhzDhmWyMtp6GCC8uXi0gTkv5E/vTOeZiM83NFLAQa+E1QnzAT+QhgXmetVy OJWP4w0q6QzVVjKMRm5HfiGX1pzNuHirw+IO3J0mdX24lEf1sHhKlUSDFk9WWsrBXQ 4chSataaa+BMfdqVjScabEPKjUSPmtpDB2yoHAScxWxi5wiwrkbtCIFTsIcq4T5eb5 KA94f2rc0NK2dQBLpglTL+I5UBgx+JYOZKMxFv6Aswg54pUtOuzx/TFKDEPdR9UvYL dJGLeuxMsgpV2l7U06ZnikXYlLlWuRzkZkq5Y/mViKSxJaL5FHX3TLeb8oNay3vxXo LrS7Hw7F1FAXw== From: SeongJae Park To: jgross@suse.com, roger.pau@citrix.com Cc: SeongJae Park , marmarek@invisiblethingslab.com, mheyne@amazon.de, xen-devel@lists.xenproject.org, axboe@kernel.dk, ptyadav@amazon.de, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/3] xen-blk{front,back}: Fix the broken semantic and flow of feature-persistent Date: Wed, 31 Aug 2022 16:58:21 +0000 Message-Id: <20220831165824.94815-1-sj@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 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