Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp865851rwe; Thu, 1 Sep 2022 08:45:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR5cw8HwkT9nGsOMInJcLYJHtEyfRp3NYL8wToXR7ujFI/x2EGJwOIdPufPldneT/VaY2nYp X-Received: by 2002:a63:2bcc:0:b0:40c:95b5:46a4 with SMTP id r195-20020a632bcc000000b0040c95b546a4mr26844874pgr.535.1662047131090; Thu, 01 Sep 2022 08:45:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662047131; cv=none; d=google.com; s=arc-20160816; b=Lpe0SQEwZmyO8OWcZmgPO0vBt23J3MSwhj7MJtt9wZvp8tYuyuMlNlOX/VTjJw6azC CcS/zZ6q7Azfmh1f646Z05ji+KMsiLC8YWUfSuZYJ8pg1OMW0Ar1WFVt4PRiTxlUuyNO 8bXBc9u5zULItsD9uBiRcjkivD+3YX9S5s2MsR6lmyKalZHA4h+5Ln3P1emLL67YKRs5 4KjgAOzETOSSxn9XfQntn09CQgDkZqidJStZZhUqlPJGyzfqQHnaGlGHs7ivZ73F19o4 TSoJEuf8uCwB5tPRCTnDDQLY+ak0Zy3NwZR2o3aO0pzaM26S1rvf+0KPX2Df5IUkqECv IpqA== 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:feedback-id :dkim-signature:dkim-signature; bh=TNsoNCzvViKt3VcPND+jjvKdD2DvxsX4hTj2K9cQ/vw=; b=EC6pxrm1fl/ubWSiMhlmUkGX+iCucoioKAnAYF/xcBFXXD2vKR/Xj9KYpTIvuoS/t/ ht6LHggbrAEC+6fE35/t74aQ6ovPJW+eaQARuFSpTYWVyMA2qRlRf2a4XaHQaqaE+jsD xXN1M2LEzs9yKts/Z8eX8D+s5ISJUZi90YUsxMlw8GbvbUttHuCR2EwpkZbBFa1eEX1B +bIcM6sGkv7orv5/adta2a15pDDoSZGhcB/016fypnBTLJGsZUDihkE6WlOdBNvzKgis ittTrxogQBZnUXLdSFmEEF0dbdRjEuq+0ZcWPgAnvBhSTyqHAEzAaqsx74NrjEcKR9oh c6Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@invisiblethingslab.com header.s=fm1 header.b=Ta5eyiig; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=3WSp8Tnx; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m8-20020a170902db0800b001752eb29dffsi7834095plx.118.2022.09.01.08.45.19; Thu, 01 Sep 2022 08:45:31 -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=@invisiblethingslab.com header.s=fm1 header.b=Ta5eyiig; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=3WSp8Tnx; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233552AbiIAPTl (ORCPT + 99 others); Thu, 1 Sep 2022 11:19:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232790AbiIAPTi (ORCPT ); Thu, 1 Sep 2022 11:19:38 -0400 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A730685AB7; Thu, 1 Sep 2022 08:19:37 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id DE0C832009A1; Thu, 1 Sep 2022 11:19:35 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 01 Sep 2022 11:19:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= invisiblethingslab.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1662045575; x= 1662131975; bh=TNsoNCzvViKt3VcPND+jjvKdD2DvxsX4hTj2K9cQ/vw=; b=T a5eyiigbp+x5c8Y/UHnpVCKhAHsnBey1ieZSDl8vsBY60K4unlLyPdzzEH9Y5/HX ie7DhoM4iIcU880x20HjF+53RMa4x9k87CdkqLEU4N0wCqPzIVHm2bcpEhsMJLO4 Uo/gKSR64mQ2TccWQwggjfeQG0JUwaHzSQcScuDkMb6Put31iaM2CgMIWIBaczRe GFSYSUbZ6My+qZchwsYTgUDVrHAc38nwp7hDUyM7588i5TcArOL9xLnMGT4zPTdR kIFkKAd/MSv0lI8VcY/Vv+ajH+7hkucPqqaP6DgGdDwHbUqUx1apLKkZkIbTMYL1 nWhzFt8ssz8urfTkcZcbQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1662045575; x=1662131975; bh=TNsoNCzvViKt3VcPND+jjvKdD2Dv xsX4hTj2K9cQ/vw=; b=3WSp8Tnxqe8RaUri7PlYqJrhuFNAHm1TC2xq9OUQqSM0 0G47H4TCwzkRneRY6u6zpaHbArwTQSJSliJhvYoGu+l3RHXtMqATHnAGWTqh82Kv SZ/t9LmwQfD5F3A3M/e851P7NnryzZv0y2hzjaj1FfM+x/7shXYDYro6kxbzwYYJ 0EqI2TlQP+nu4yRZBVAuA7ogHX63nCFoFCxuPasifwibx+HbN4NqpQKq6USviTSn Gw6O8qn12ZKN9h+Y3+IrVh0Fh06aFH4D1AvMONNApxfkyNjdK5/vR+HgmXcQ0AUt XPSAapu4QdJr3tK9X+3MpYvYWd0kLXLWyzr2gENhAQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdekkedgkeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvvefukfhfgggtuggjsehgtd orredttdejnecuhfhrohhmpeforghrvghkucforghrtgiihihkohifshhkihdqifpkrhgv tghkihcuoehmrghrmhgrrhgvkhesihhnvhhishhisghlvghthhhinhhgshhlrggsrdgtoh hmqeenucggtffrrghtthgvrhhnpeeluedtveefffeulefgudeiveeuffdtkeehveejieei gfettddtfefgkeehudetfeenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrrhhmrghrvghk sehinhhvihhsihgslhgvthhhihhnghhslhgrsgdrtghomh X-ME-Proxy: Feedback-ID: i1568416f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 1 Sep 2022 11:19:33 -0400 (EDT) Date: Thu, 1 Sep 2022 17:19:29 +0200 From: Marek =?utf-8?Q?Marczykowski-G=C3=B3recki?= To: SeongJae Park Cc: jgross@suse.com, roger.pau@citrix.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: Re: [PATCH v2 0/3] xen-blk{front,back}: Fix the broken semantic and flow of feature-persistent Message-ID: References: <20220831165824.94815-1-sj@kernel.org> <20220831170817.94903-1-sj@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Pi/sglFMMbnoUUwn" Content-Disposition: inline In-Reply-To: <20220831170817.94903-1-sj@kernel.org> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,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 --Pi/sglFMMbnoUUwn Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Date: Thu, 1 Sep 2022 17:19:29 +0200 From: Marek =?utf-8?Q?Marczykowski-G=C3=B3recki?= To: SeongJae Park Cc: jgross@suse.com, roger.pau@citrix.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: Re: [PATCH v2 0/3] xen-blk{front,back}: Fix the broken semantic and flow of feature-persistent On Wed, Aug 31, 2022 at 05:08:17PM +0000, SeongJae Park wrote: > On Wed, 31 Aug 2022 16:58:21 +0000 SeongJae Park wrote: >=20 > > 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) > >=20 > > 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. >=20 > Please note that I have some problem in my test setup and therefore was u= nable > to fully test this patchset. I am posting this though, as the impact of = the > bug is not trivial (always disabling persistent grants), and to make test= ing of > my proposed fix from others easier. Hope to get someone's test results o= r code > review of this patchset even before I fix my test setup problem. I can confirm it fixes the issue, thanks! Tested-by: Marek Marczykowski-G=C3=B3recki > Juergen, I didn't add your 'Reviewed-by:'s to the first two patches of th= is > series because I changed some of the description for making it clear whic= h bug > and commit it is really fixing. Specifically, I wordsmithed the working = and > changed 'Fixed:' tag. Code change is almost same, though. >=20 >=20 > Thanks, > SJ >=20 > >=20 > > 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 > >=20 > > 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(-) > >=20 > > --=20 > > 2.25.1 > >=20 --=20 Best Regards, Marek Marczykowski-G=C3=B3recki Invisible Things Lab --Pi/sglFMMbnoUUwn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAmMQzYEACgkQ24/THMrX 1yyDYwf/VfKN646vVgi2jJoF6YTtEC9WtaCKnkgp9Bhbx6MBspI0VMcMqlUW4iON qs/hnpOCkht7ZawoVqnlK6mb+u6M4W7MFSMNXWSXYvyiCs4fn0dYKm+V630g0eY2 jf7RIMbtjMs7D6GCEmg/FRYft2igtwVu/DQrrJeYXB13QgwXb2/5+PdwlDugMJE1 2ZUeCBQH680TnNsfw68eF4LY7+nZAqaC357Ns/5ANz0GR+M+CxG6B2zPsk7hd5ab pQt15XHMlzSeJNo2TpDWpZ3Rq4mKDzXL2V55S4eqq82rGymLYTaWzZzNGNmEhEtD abuZg0mXO7/n/yrWpUclPsSC5TwaXA== =NzXu -----END PGP SIGNATURE----- --Pi/sglFMMbnoUUwn--