Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1368726pxm; Thu, 24 Feb 2022 01:33:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJzWq/97dAzDYzMUOy8MwPxRjg+4HaFcStu5VenUyyX7uET8KoJxf/T69CIr5j9o7kuyvEvc X-Received: by 2002:a17:902:eecb:b0:14f:dfe5:d7a4 with SMTP id h11-20020a170902eecb00b0014fdfe5d7a4mr1801261plb.131.1645695219065; Thu, 24 Feb 2022 01:33:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645695219; cv=none; d=google.com; s=arc-20160816; b=F9CLceTrUtzfGVkVK3mwwHifTZl7+9K9fTppOpIr8bfUmQLKWSHKWS81oSGdmwN3bk WdznHwFf6oN1Sv0ujMkIw82vKmhDDH3y7arltG9guTNM5U1uqNvhzzaTPoE76Jde2WFg 3hJr5gaLAqifPtgA63sjUCaeQpYynMmsNqx8Oc/sXPex+l3fFyTYv9bK0hMtpEFSL1Oj pD2RLs5yXSyVBMjjNXBL4FHyOtIUME2NOFkPG2CX9+B2zK0ePNFE9WcFvgBdyl3Nx7Pl uJPd/KxQwBrpjOem9qVIOYCjFPHZjQ7OS5qNNxp8I4CSGyAseiZItyk74xMmVCSCLO7N xKMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=i5srQTcHyBT3JWNRDfS6akZJtTCyntFD2oBwzbTEE7M=; b=fX7DOBniuDAV67b2oT4ASlcerbmEYuNSHb44lWvhBCAdEW7+HZF1E1tmODg2hwRNgn 5lkF+ZAkJ8Pi3GqGQ9RpFicrsUQtmZw9kS9gg/rwSH+UZ5i4TAR4z0WF7kYH5hhowDzn lIcZhOUz+vaVWcfslBoHF24nmRgx3cFqfFEUK1OE63JjoFYfGjJ0TtykUWl92fAVeSqw kr+fCy2cCaINfLWRCGqiFwGo4osWcs8KEzhHq3YBm21wTOIwxwOyGyXYpc+DEYbQvPf5 H0H3205bwbLnCcG45o4LDkEt+bwTJ0sdb0BotqqIw5TMp1jPlJF8FeZAVaHaxdXDE7Rn a/bg== ARC-Authentication-Results: i=1; mx.google.com; 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 n4si2038832pjo.61.2022.02.24.01.33.22; Thu, 24 Feb 2022 01:33:39 -0800 (PST) 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; 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 S232091AbiBXJJ3 (ORCPT + 99 others); Thu, 24 Feb 2022 04:09:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232539AbiBXJJG (ORCPT ); Thu, 24 Feb 2022 04:09:06 -0500 X-Greylist: delayed 428 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 24 Feb 2022 01:08:31 PST Received: from blyat.fensystems.co.uk (blyat.fensystems.co.uk [IPv6:2a05:d018:a4d:6403:2dda:8093:274f:d185]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35DBE19E011; Thu, 24 Feb 2022 01:08:30 -0800 (PST) Received: from pudding.home (unknown [IPv6:2a00:23c6:5486:8700:eaa7:4ea6:88e4:6f0e]) by blyat.fensystems.co.uk (Postfix) with ESMTPSA id 314E643912; Thu, 24 Feb 2022 09:01:17 +0000 (UTC) Subject: Re: [PATCH v2 2/2] Revert "xen-netback: Check for hotplug-status existence before watching" To: paul@xen.org, =?UTF-8?Q?Marek_Marczykowski-G=c3=b3recki?= , linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org, Wei Liu , "David S. Miller" , Jakub Kicinski , "moderated list:XEN NETWORK BACKEND DRIVER" , "open list:XEN NETWORK BACKEND DRIVER" References: <20220222001817.2264967-1-marmarek@invisiblethingslab.com> <20220222001817.2264967-2-marmarek@invisiblethingslab.com> From: Michael Brown Message-ID: Date: Thu, 24 Feb 2022 09:01:17 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 24/02/2022 07:56, Durrant, Paul wrote: > On 22/02/2022 00:18, Marek Marczykowski-Górecki wrote: >> This reverts commit 2afeec08ab5c86ae21952151f726bfe184f6b23d. >> >> The reasoning in the commit was wrong - the code expected to setup the >> watch even if 'hotplug-status' didn't exist. In fact, it relied on the >> watch being fired the first time - to check if maybe 'hotplug-status' is >> already set to 'connected'. Not registering a watch for non-existing >> path (which is the case if hotplug script hasn't been executed yet), >> made the backend not waiting for the hotplug script to execute. This in >> turns, made the netfront think the interface is fully operational, while >> in fact it was not (the vif interface on xen-netback side might not be >> configured yet). >> >> This was a workaround for 'hotplug-status' erroneously being removed. >> But since that is reverted now, the workaround is not necessary either. >> >> More discussion at >> https://lore.kernel.org/xen-devel/afedd7cb-a291-e773-8b0d-4db9b291fa98@ipxe.org/T/#u >> >> >> Cc: stable@vger.kernel.org >> Signed-off-by: Marek Marczykowski-Górecki >> > > Reviewed-by: Paul Durrant In conjunction with patch 1/2 (which reverts the patch that caused the original problem): Reviewed-by: Michael Brown Thanks, Michael