]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/ibmnvic: Fix deadlock problem in reset
authorJuliet Kim <julietk@linux.vnet.ibm.com>
Mon, 19 Nov 2018 21:59:22 +0000 (15:59 -0600)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Nov 2018 02:56:31 +0000 (18:56 -0800)
commita5681e20b541a507c7d4fd48ae4a4040d32ee1ef
tree0b3ce2f2c3d4079e9c48f4579975d3d8a415908b
parentdb9a0bae8ffca4e1ce5089b999e40afd4edb8e79
net/ibmnvic: Fix deadlock problem in reset

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 <julietk@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c
drivers/net/ethernet/ibm/ibmvnic.h