Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp993266rwd; Wed, 7 Jun 2023 09:28:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ71jdXuBWTWXFxnO2lLk9OEZeRMPwq9It/xZH4vnRIvPXe8KyTo05xaTHguwmkVCgCz6zlT X-Received: by 2002:a17:902:6b89:b0:1af:9c06:22e5 with SMTP id p9-20020a1709026b8900b001af9c0622e5mr2133988plk.69.1686155314726; Wed, 07 Jun 2023 09:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686155314; cv=none; d=google.com; s=arc-20160816; b=pqA9VTgaekci2GekPZOFtJ2oYaFBtHhJ4g5TATeABBgp3gF2e/e3yzUHamllKCpR5F YhdT83t9069+nXL/UhCxzHTtY+/ODYeU0fmFGcq03OodsKH8cgAojc6AOm+/uV3EdDIJ PEupr07LirVURs8FmHofmHuu2wbJsx0Z/5wQFPfsMPnT4NmxJwN4ulWDqkBdJhBvPRzx z7NWpaltSy8gvyqxsmxhT1RPyw+8WfK6k7cTL2JSbQhqUBcisVijRlV5J6jsZnEeOQEK zLtrZArl1npIF9FpbEq98zTpT4SEz9VfHEHhe4UIh+GdN+XhLIs/cXReiPn+1pRopQRK 60bw== 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=2UoO8B7Qn0k2QzL7d+OGaqTzOAQvpjpsvVcEYJCpl1o=; b=Y/tG/kgATWz2wE9TNxRdUa8Q5XPEPM8es+cZr6fnnZkgIpNHB0L/mgeSlSP4Kup9fF 6AW7U0sPhRM7DPxiV66TGd6ojNSx8og96vd8TvUXcjBhH0yUjE2NJzDVG82+6VWCSCXQ bf187yDQJOXFSIDsWS9liC1NHGxlSw7DAIDyd17iDUupN+/rII1sCiElhPeNK4n1CQ5s OuETsb9VU3ecz2fwxVz0/nteh+NAYsq2oCgPgf63KG1vjHxWeGXU3w7kxg41DqoMBGrd UGXJCC8YD3O5fv0g5vVC4a1WakfxoXd3bFIGsfot5g8nIZLBg8eczIL9Q46skraJnLJx ZdSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@invisiblethingslab.com header.s=fm1 header.b="P/sylwK0"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=M+SYPvvF; 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 k13-20020a170902c40d00b001a691f376e8si9364103plk.415.2023.06.07.09.28.19; Wed, 07 Jun 2023 09:28:34 -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="P/sylwK0"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=M+SYPvvF; 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 S239970AbjFGQBT (ORCPT + 99 others); Wed, 7 Jun 2023 12:01:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239734AbjFGQBR (ORCPT ); Wed, 7 Jun 2023 12:01:17 -0400 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1586D1988; Wed, 7 Jun 2023 09:01:17 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 856305C0229; Wed, 7 Jun 2023 12:01:16 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 07 Jun 2023 12:01:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= invisiblethingslab.com; h=cc:cc:content-type: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= 1686153676; x=1686240076; bh=2UoO8B7Qn0k2QzL7d+OGaqTzOAQvpjpsvVc EYJCpl1o=; b=P/sylwK0Oo2scXna9wnN25CgyGn7pCDm4HvPPp51OQzHyuY1XG+ yLkTAfQZoYJXMxIzSsuzfnGWCr8F/fElncTbLW2wbEK4XTxSdgSbZnhqQWccdP30 3Exd1VvNZr2iXIxUAp5RrlUX/YI6V0erTq6QVQbAMkwNlkg7l2Y/fNMQCcPxBiHA Z553O/RH7ofCxhjZGOaV/I2raxnI2QtDJN7SrjD+ssxFyXWRP3fDShCTeoviSgmj pIeUOHd8RtMXxKoLKMXixeVYS2kerT7qigsYgpWWVEP3yUTPX9/ljHFstEx6DGTq 8X2qvxn1rbw9t+cJ+BXLws7pGe0aPCX8lPQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type: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=1686153676; x=1686240076; bh=2UoO8B7Qn0k2Q zL7d+OGaqTzOAQvpjpsvVcEYJCpl1o=; b=M+SYPvvFAPpg2FqxW2Ocp8tcv/oST 7Xl28iQJ0aAb48lYJanERjkGIkM9A0YzEhJIO9v6fW+Cgp2URoa0x8d0xbGavyR+ 2YaTycU097kwVROrl0P+4Xv5VfX+KjQzryn53sqeNJyLQhHTAV63B35FRDUFQhQm sHqRFCer8HEi330HHhdOU8cye4/t7+kaiL7/as4GQfEA9WaBiRuTE87VcKg8zJXa VVAATsp5Mv3wEhf7v6Q/CSHeiMjU+jIwz8y5m8jrKqui9RmaUOTJ+DWrjmFwXCPh rKWInA60g5hv7g3su31JEKu8s0bk4pjo+FaS9zoMqsKWumXQqUxfZoy5w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgedtgedgleeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepffgvmhhi ucforghrihgvucfqsggvnhhouhhruceouggvmhhisehinhhvihhsihgslhgvthhhihhngh hslhgrsgdrtghomheqnecuggftrfgrthhtvghrnhepudeileefueetvdelheeuteffjeeg jeegffekleevueelueekjeejudffteejkeetnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepuggvmhhisehinhhvihhsihgslhgvthhhihhnghhs lhgrsgdrtghomh X-ME-Proxy: Feedback-ID: iac594737:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 7 Jun 2023 12:01:14 -0400 (EDT) Date: Wed, 7 Jun 2023 12:01:11 -0400 From: Demi Marie Obenour To: Christoph Hellwig Cc: Roger Pau =?utf-8?B?TW9ubsOp?= , Jens Axboe , Marek =?utf-8?Q?Marczykowski-G=C3=B3recki?= , xen-devel@lists.xenproject.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] xen-blkback: Inform userspace that device has been opened Message-ID: References: <20230601214823.1701-1-demi@invisiblethingslab.com> <20230601214823.1701-3-demi@invisiblethingslab.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WgIi5Tes309KNxkl" Content-Disposition: inline In-Reply-To: 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,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 --WgIi5Tes309KNxkl Content-Type: text/plain; protected-headers=v1; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Date: Wed, 7 Jun 2023 12:01:11 -0400 From: Demi Marie Obenour To: Christoph Hellwig Cc: Roger Pau =?utf-8?B?TW9ubsOp?= , Jens Axboe , Marek =?utf-8?Q?Marczykowski-G=C3=B3recki?= , xen-devel@lists.xenproject.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] xen-blkback: Inform userspace that device has been opened On Wed, Jun 07, 2023 at 12:46:16AM -0700, Christoph Hellwig wrote: > > --- a/drivers/block/xen-blkback/xenbus.c > > +++ b/drivers/block/xen-blkback/xenbus.c > > @@ -3,6 +3,20 @@ > > Copyright (C) 2005 Rusty Russell > > Copyright (C) 2005 XenSource Ltd > > =20 > > +In addition to the Xenstore nodes required by the Xen block device > > +specification, this implementation of blkback uses a new Xenstore > > +node: "opened". blkback sets "opened" to "0" before the hotplug script > > +is called. Once the device node has been opened, blkback sets "opened" > > +to "1". >=20 > This is a really odd comment style, and a really strange place for it. > To me it feels like this should just be a file in Documentation as it > relates to how to use the driver, and doesn't really explain the code. Will fix in v3. --=20 Sincerely, Demi Marie Obenour (she/her/hers) Invisible Things Lab --WgIi5Tes309KNxkl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEdodNnxM2uiJZBxxxsoi1X/+cIsEFAmSAqckACgkQsoi1X/+c IsGmCg/+PbmcJVAb/MiNuNHzPQ/Vq7YzVW9qFtwIrvQC5Eb7EjXPWQ4P5TRbBdZS tH4aoGHWANtB8/M1Gh8GmtYHttitFzuO7oe22pIisvOAM4+28uvXojLN3v4SjrhE /Dn7xkvivLfKKqmTUbyv5cPbhZVc96VeZ5mn0Gt57+oGMQU+DE4BAG8rRicYW2Ok isEAlvI+V08xKVW0dOYu9Qis/Qm48kQhbCZHWTuXlIrKBgcTYu40LQMrYg9nd8YB 9uQ75fyAiuZMM55fu54spREudNDP1FkFX5uuXj2A1M8Yjl7G93RMaizvUrjPLeUO fKbiWrk8Nlc0OKnS4WOAYtnvsTpH6LaJuZA7/IT5sYG7fXT0B0krVxvZsgInNxKJ nsbr46g4Sv2LoJTifF8rrF+ujGBWceDkB5VIo6bhYqNbJ8xLGfaFEYrF7XcliWf0 RstpIOa7kKVA0GV/l8HezD+Iez1BoUatPsPq1cdzp7bTsN2rgG6VK+0jWmV01n/N 8wyHxfXU8Z3NpTNFPJXgjTu4zqcLsKpmpsbP5Ee7W3bKNrUZXIRL6spGRJcOxcsi POrPJ72Zf8Sw+vULlK0+hKSf3BtckaTVmCU9e3qJE+4ukrzpoFVvf96mPVaXLMaT OLY/3zj/5bNxCzSC+GWKTMTg2lL6Txbyfyht0YkfmUL3Rgh9i9Y= =nc8R -----END PGP SIGNATURE----- --WgIi5Tes309KNxkl--