[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <475d23e065164464facef1fedf3ea466@linux.vnet.ibm.com>
Date: Fri, 20 Nov 2020 14:52:47 -0800
From: drt <drt@...ux.vnet.ibm.com>
To: Lijun Pan <ljp@...ux.ibm.com>
Cc: netdev@...r.kernel.org, sukadev@...ux.ibm.com, drt@...ux.ibm.com
Subject: Re: [PATCH net v2 1/3] ibmvnic: fix call_netdevice_notifiers in
do_reset
On 2020-11-20 14:40, Lijun Pan wrote:
> 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 <ljp@...ux.ibm.com>
Reviewed-by: Dany Madden <drt@...ux.ibm.com>
> ---
> v2: split from v1's 1/2
>
> 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 da15913879f8..eface3543b2c 100644
> --- a/drivers/net/ethernet/ibm/ibmvnic.c
> +++ b/drivers/net/ethernet/ibm/ibmvnic.c
> @@ -2074,8 +2074,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;
Powered by blists - more mailing lists