]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: hns3: bugfix for rtnl_lock's range in the hclgevf_reset()
authorHuazhong Tan <tanhuazhong@huawei.com>
Tue, 30 Oct 2018 13:50:53 +0000 (21:50 +0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 14 Jan 2019 09:28:55 +0000 (09:28 +0000)
commita09d4c4079b6b8e8fee0433cb67c900564ab42fe
treefccf716f55c87464d1fca3e77e1fc9be0c20a820
parenta4d93aee2b2d5fffbcba1f915c4b587068fc771a
net: hns3: bugfix for rtnl_lock's range in the hclgevf_reset()

BugLink: https://bugs.launchpad.net/bugs/1810457
Since hclgevf_reset_wait() is used to wait for the hardware to complete
the reset, it is not necessary to hold the rtnl_lock during
hclgevf_reset_wait(). So this patch releases the lock for the duration
of hclgevf_reset_wait().

Fixes: 6988eb2a9b77 ("net: hns3: Add support to reset the enet/ring mgmt layer")
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 29118ab962d5476fdc65fae312ac38db68092d78)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c