Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp408534pxu; Tue, 1 Dec 2020 14:31:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJy068y0z5qk2JB2GiQWgsHhUvdghYCS83fps4Nzo2vHwOSyjxPkW9GJ+D1m6b26lH9gVZtA X-Received: by 2002:a17:906:4482:: with SMTP id y2mr5251644ejo.342.1606861905311; Tue, 01 Dec 2020 14:31:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606861905; cv=none; d=google.com; s=arc-20160816; b=Cu4ecl0GqSgu6tbrvVEyrg2VJbBMQqDsyrX9wJD3AdurLfbI7QFF6FNaI7CPBBzPrZ pWpzU7y7fnUyKO34iBXnLCVZ6Y6xsw1ZfuMBjaClqqtZ4Kss7z1r0UMa9VFHFlpgFK74 g9poRKp6sLoXy5d4Krpm71PAS5c6D6PrqBukUQqWjgfiAZrUH3RHdcXI1XMlIu3iyKKD f3k4Vz6Z9RoNjpYxV5xspXvUdG4dVXUeGehklFxvGuFs2V9M8w/9gE93irTM8K9H5r8V G6RQ+MjtnE7QOR1jiErvm9qkawIF+a6KSv8g+v+M/lcVbl7ZSZtIU+QbB4mrd2hisvzZ FHow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=CcufC9gVmbl1fI46iiUCSza6RAsD1Y6O8ltkvR7kkiI=; b=Oh/3i+GhgfhmGhcsRFR3Kjvl8s0RlP2lseXPLbOMH0s+BrEgXjBn1W4HpMj43GSj7y vObqXqZMKhtmo0d4v9t3OoYiHTZ9mx2M6nBuLRGz4zIGMPAETh8trW+MquhKsruphm0k csH0cBIlUnDvQGze/QczH8AX9wEmwkIPYpLXLmaLsf1uZw2qJLX+kmYbLqUbYnc7n5hi dJsKnlaefbF9X10yN2784v/B7s09ch4I0pc9Fk/P1Q+lfJ32SzpVH+xTqKtlJRbTFLjr D7QO4vNsSU8uSJlfc3n3JoYd1N/jn+drDyy4B13+waXyFs4ZMEM2oK29L4Xs9zauXCQt gl/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GCkigl+A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u8si777562eje.57.2020.12.01.14.31.22; Tue, 01 Dec 2020 14:31:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GCkigl+A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390854AbgLAJYi (ORCPT + 99 others); Tue, 1 Dec 2020 04:24:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:42350 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388369AbgLAJF7 (ORCPT ); Tue, 1 Dec 2020 04:05:59 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 61D3822247; Tue, 1 Dec 2020 09:05:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606813544; bh=KpY99fgZ0sWLQ7E7gYEBo7BeDXSPAFnWhrHyVifOP40=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GCkigl+An7YADKBEwV7rTI/1PhcHlXMk9FkwhmEcikyGmmjy+EMtXo6pcCwZPvKdz 7f3MBvzw0yq59iANL/o+mQkesNwDjq/HnYFUfCxAlt2Zd/MRvHNkmH7inUGXM5a5B5 LdnRm6lWQUQU58QqVaH9DzhKyNf3Z+DalpEGB/pQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lijun Pan , Dany Madden , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.4 58/98] ibmvnic: fix call_netdevice_notifiers in do_reset Date: Tue, 1 Dec 2020 09:53:35 +0100 Message-Id: <20201201084657.930880423@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201084652.827177826@linuxfoundation.org> References: <20201201084652.827177826@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lijun Pan [ Upstream commit 8393597579f5250636f1cff157ea73f402b6501e ] When netdev_notify_peers was substituted in commit 986103e7920c ("net/ibmvnic: Fix RTNL deadlock during device reset"), call_netdevice_notifiers(NETDEV_RESEND_IGMP, dev) was missed. Fix it now. Fixes: 986103e7920c ("net/ibmvnic: Fix RTNL deadlock during device reset") Signed-off-by: Lijun Pan Reviewed-by: Dany Madden Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/ibm/ibmvnic.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c index f357b9cbfee72..8d9e95c2725fb 100644 --- a/drivers/net/ethernet/ibm/ibmvnic.c +++ b/drivers/net/ethernet/ibm/ibmvnic.c @@ -1994,8 +1994,10 @@ static int do_reset(struct ibmvnic_adapter *adapter, for (i = 0; i < adapter->req_rx_queues; i++) napi_schedule(&adapter->napi[i]); - if (adapter->reset_reason != VNIC_RESET_FAILOVER) + if (adapter->reset_reason != VNIC_RESET_FAILOVER) { call_netdevice_notifiers(NETDEV_NOTIFY_PEERS, netdev); + call_netdevice_notifiers(NETDEV_RESEND_IGMP, netdev); + } rc = 0; -- 2.27.0