From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] net/ibmnvic: Fix deadlock problem in reset Date: Mon, 19 Nov 2018 18:56:45 -0800 (PST) Message-ID: <20181119.185645.2204566540161345724.davem@davemloft.net> References: <20181119215727.22197.97260.stgit@ltcalpine2-lp22.aus.stglabs.ibm.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, tlfalcon@linux.vnet.ibm.com, mwb@linux.vnet.ibm.com, tyreld@linux.vnet.ibm.com To: julietk@linux.vnet.ibm.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:57216 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728538AbeKTNXh (ORCPT ); Tue, 20 Nov 2018 08:23:37 -0500 In-Reply-To: <20181119215727.22197.97260.stgit@ltcalpine2-lp22.aus.stglabs.ibm.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Juliet Kim Date: Mon, 19 Nov 2018 15:59:22 -0600 > This patch changes to use rtnl_lock only during a reset to avoid > deadlock that could occur when a thread operating close is holding > rtnl_lock and waiting for reset_lock acquired by another thread, > which is waiting for rtnl_lock in order to set the number of tx/rx > queues during a reset. > > Also, we now setting the number of tx/rx queues during a soft reset > for failover or LPM events. > > Signed-off-by: Juliet Kim Applied.