Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1315954pxm; Thu, 24 Feb 2022 00:13:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJyD/YAu5/vy1JnokgnooL9yec19vGITiQk8U3zCk6DyU1VHD0hrtpUQXeEN8bepyoLHIXmc X-Received: by 2002:a17:906:4116:b0:6cd:1980:5ad0 with SMTP id j22-20020a170906411600b006cd19805ad0mr1412206ejk.595.1645690413061; Thu, 24 Feb 2022 00:13:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645690413; cv=none; d=google.com; s=arc-20160816; b=kzVC+MgJo7tOfMau/WLzZsE4ZUuJurz8qDvX6PRc8FOyDvNm2940ZVNZTiOmZCGNfm BlV8p18U3027MjbANXaE7OiACU6UpGL5YIR4Jj8AOOti3W5qo39HI/4cY0+trrlWySZb hhKs9IPNoQc5kie5fQ5m0rNwYneghddd7Wimdo83ulB2BnNn5D4bV0N0RW8l6s1AkJBp fX1JQJpnoQr2XzLqY5rQXDHX/4AWgDRQETz2S+A6EpNpa6Oc+To8Qx/adsPW7hMmoRAq PauYy5W+Q9pg2oDkVZEb0yZBqSI8ZO40UExoT0rS+o5xjKWQMwiMEqvEDH5ub4//Ritu /7/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:reply-to:user-agent :mime-version:date:message-id:dkim-signature; bh=75MxyoNLX+jup+3IZc6uzyBIvH5fg0GcSMBv0gLbqp0=; b=Unh8BAo3tS3SdAxnBxM1HOPivAaotdsCgaLJvrLXjqjvUDkxxD5gICN/Zymnmc/aGW Qeu1ppuceaHcedWsXINszz/Kk3LX5xHLX/QlvZSFYo+I68UvF7b2JJuk/bXNpMAGS7Kd Wt53K6TDgsdY5WM5P9YusyWDLLFO5iuDS4b+z+Bd9Fg2Lg5D4UxM6wEyPSMmL2nhQwzI 26h1WWvXMwLD7Isa85zDrP02vZR+7rMc0HbKetdQ5Q8xn09JHC3pORfaPby2YeaO4CEa PPQpvvy+5hTrw1hItKblgLaPXJ1j1ttMgpbuKYHBVI41sZ+BEOlam9EVGz7gAH8AtMYK De3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="H/k93g5N"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h25si1100761ejg.268.2022.02.24.00.13.09; Thu, 24 Feb 2022 00:13:33 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b="H/k93g5N"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230336AbiBXH4w (ORCPT + 99 others); Thu, 24 Feb 2022 02:56:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229771AbiBXH4w (ORCPT ); Thu, 24 Feb 2022 02:56:52 -0500 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D6CA235854; Wed, 23 Feb 2022 23:56:21 -0800 (PST) Received: by mail-wr1-x42b.google.com with SMTP id r10so619316wrp.3; Wed, 23 Feb 2022 23:56:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:reply-to:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=75MxyoNLX+jup+3IZc6uzyBIvH5fg0GcSMBv0gLbqp0=; b=H/k93g5NLzzNzoxwKfe8LDJebraiMpZshak6/6jcSf6DsqkHkkV04+FC8w+9g4X5O4 i67rWmn6FZzAaPLQOfopBkul41ZHkuq00QhdDDMqGX8M3JlCV3a8Y1rd7cCQ36tnAWDm 2PCOHNQgY19f9sETQeDKCUzMKN8iGa9AmkvQbdtzTRhT1y3hqXhY6Ov+grh4i6snLmy9 YZ4Zp4zMStYeQQvxHizbceIgiugE+u93IalzdR1zeea2lDN+nvICdisUCtxCH2HFrFXg SMijirS44Gbqxa7cfV1p1qlGwE4HtKgVkBegRQXpPSjp1enh1CnANa4XgIpVHZjHSPDg itqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:reply-to :subject:content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=75MxyoNLX+jup+3IZc6uzyBIvH5fg0GcSMBv0gLbqp0=; b=oWNpFQrajPUVHYeXxE03RMHqsR7/ZGBNpLl1gLE43eEKk5I2E+zgAj7LHu+4rnYCTZ T3JAuC4mdZvgiTFR0IgUDTd8QeBzWQ+Wop4LyL/KcIWCEVmodCg3tsu1Le3kg6fd6K5A bevYWXxe+H1H7NZR/0o63JmpWnLu6JB2CZX0YDavF8X7U0NEE+lUR1F/95/TAcr+4mlb rHVOfdAnkuL5ilDUqEZzp8ea4F077ToQdvhTaOka6rIRXuAXq7THSvEDcpNkqrexqgnW ePHeRyXZfTq7D4/DjjDZ6ZRBCHbhCgANC4lfSnR3UQBYy8J/zPa76H6lKlwVVChWcY3L VSGg== X-Gm-Message-State: AOAM533bSlCSclJrTI78NfawDXPe9A8zN8Q9QIRRUYID8/+2Np6WdL4Y kR8mAMeH/ux85lA5lN/6Zk8= X-Received: by 2002:a05:6000:18ad:b0:1e8:cbe1:afd with SMTP id b13-20020a05600018ad00b001e8cbe10afdmr1188474wri.352.1645689380036; Wed, 23 Feb 2022 23:56:20 -0800 (PST) Received: from ?IPV6:2a00:23c5:5785:9a01:b013:cd66:72b0:92c8? ([2a00:23c5:5785:9a01:b013:cd66:72b0:92c8]) by smtp.gmail.com with ESMTPSA id x14sm2352487wru.0.2022.02.23.23.56.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Feb 2022 23:56:19 -0800 (PST) Message-ID: Date: Thu, 24 Feb 2022 07:56:18 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Reply-To: paul@xen.org Subject: Re: [PATCH v2 2/2] Revert "xen-netback: Check for hotplug-status existence before watching" Content-Language: en-US To: =?UTF-8?Q?Marek_Marczykowski-G=c3=b3recki?= , linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org, Michael Brown , Wei Liu , Paul Durrant , "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: "Durrant, Paul" In-Reply-To: <20220222001817.2264967-2-marmarek@invisiblethingslab.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,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 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