[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220628102707.436e7253@kernel.org>
Date: Tue, 28 Jun 2022 10:27:07 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Tony Nguyen <anthony.l.nguyen@...el.com>
Cc: davem@...emloft.net, pabeni@...hat.com, edumazet@...gle.com,
Piotr Skajewski <piotrx.skajewski@...el.com>,
netdev@...r.kernel.org,
Konrad Jankowski <konrad0.jankowski@...el.com>
Subject: Re: [PATCH net 1/1] ixgbe: Add locking to prevent panic when
setting sriov_numvfs to zero
On Tue, 28 Jun 2022 09:53:46 -0700 Tony Nguyen wrote:
> + spin_lock_irqsave(&adapter->vfs_lock, flags);
> +
> /* set num VFs to 0 to prevent access to vfinfo */
> adapter->num_vfs = 0;
>
> @@ -228,6 +231,8 @@ int ixgbe_disable_sriov(struct ixgbe_adapter *adapter)
> kfree(adapter->mv_list);
> adapter->mv_list = NULL;
>
> + spin_unlock_irqrestore(&adapter->vfs_lock, flags);
There's a pci_dev_put() in there, are you sure it won't sleep?
Powered by blists - more mailing lists