Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp375291rwd; Wed, 7 Jun 2023 00:50:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6M41Kczyksr3HaYq4/w6z1taDPtFT+XmDt5wbUJ61ZJZCcMm+WcoBVdonwac315MndB/Xp X-Received: by 2002:a05:6359:319:b0:129:ccaf:c6c2 with SMTP id ef25-20020a056359031900b00129ccafc6c2mr2570249rwb.21.1686124240451; Wed, 07 Jun 2023 00:50:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686124240; cv=none; d=google.com; s=arc-20160816; b=YxjSm27eiU3mf7S+HmPwtE+LRqlLEBM/s4NdDaYgEg5PR1/RvCK3h9qmzZh1KYKWbl PpJoiOd3mr56rOLyBDE3sTrPUiI5sZzXKcEfN6zME3dsoSEfQ89Qx+9iluHzBfBZhquZ WMGOeKe5BZt7PqvQsoMispmWDnlOBBe/F8Ru5KBilCiwdwTFYJhsEE8WX11Ruu4lH+Hp H0r/hp3sltmpuK21nVM85MtoLPoR52jK5MY019sByQql8HN8lR13NVKZ13mMsge5R0Of uoWfYt4rB05u21fl4wJIBlT58vY3rz+fHxxBejWIX8qeiFTEt4/G62ab4slu7OxaOXUP yoKw== 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=zx7QiNnFC0Cpwen1yiSTOeTK/8rpSNjru1sqAkfYhQU=; b=cM9AljRkEx8jEYGKKfWGEOtC1HlqYtoQoiXGkL/OXwVy917WILKS7PuBkfj9jdjyuk aceFUF7UJ+ZW54iHzVWjm5oxL8WAjMY+fGodCyL9TitsvPyKiO3cxUPf3x95V2d6xzRG IbzKmLA/JXWh0XbLrcT4LARE1gpA0aOiqtnqc2TTTaagDs/SCiMHrftIf8VQED/5tH8Q 9QDKMRuHEwvHhS7lpnBsWqAtNN1C2Jofk4z/OkF8qkrvUxpz3mrR4clLmOGS/+PNbb4x /ZwnurG2saUOB9qQc7CBg/O53R3fmtrJLjlM9yJN93BWpvVEAyqiL78kj98GIyna9qPQ G5eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="yAWYaRs/"; 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 k7-20020a635607000000b0053490e8df4dsi8573659pgb.104.2023.06.07.00.50.27; Wed, 07 Jun 2023 00:50:40 -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=@infradead.org header.s=bombadil.20210309 header.b="yAWYaRs/"; 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 S239335AbjFGHsF (ORCPT + 99 others); Wed, 7 Jun 2023 03:48:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239330AbjFGHrl (ORCPT ); Wed, 7 Jun 2023 03:47:41 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06F03212E; Wed, 7 Jun 2023 00:46:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=zx7QiNnFC0Cpwen1yiSTOeTK/8rpSNjru1sqAkfYhQU=; b=yAWYaRs/exv9l4aW3kRh15uGCe 26FluPYMyAqbRNSSIKILK5H+P/HRb+mLP2AVCZD8Q6/dOrzSkIWCs7Epg5moTHRi1Pj0dpEWULnsO O7NYmBvnRZqEt+xSMqI3EI3MQfvt5yQ42VPSZsOOdcFokDphTUPA66kyZ6YO1YnkrYywoCHQYV3Ea 0MDsIqEqxuTqVM0/S2p9YhiyYiGf5LX7u3r4ZZIlUTMCZAFMMuz8srwGclvl/WuS8PZXb9qms4iiV jkrDp65eAYRHr6bzEzcpMFs/3lcXVHwIJ6nXcIQysCnXcIa9qte7v7qw+LV/9Oskk3ET3QhPsIhKZ nl2txkrA==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1q6ns0-004nZS-2l; Wed, 07 Jun 2023 07:46:16 +0000 Date: Wed, 7 Jun 2023 00:46:16 -0700 From: Christoph Hellwig To: Demi Marie Obenour Cc: Roger Pau =?iso-8859-1?Q?Monn=E9?= , Jens Axboe , Marek =?iso-8859-1?Q?Marczykowski-G=F3recki?= , 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: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230601214823.1701-3-demi@invisiblethingslab.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, 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 > --- 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 > > +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". 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.