]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: fix potential deadlock when canceling dim work
authorYinjun Zhang <yinjun.zhang@corigine.com>
Fri, 29 Oct 2021 11:29:03 +0000 (13:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Oct 2021 12:25:32 +0000 (13:25 +0100)
commit27cd279a4f765ea66cf3cd32db98b9ceb0206ac9
tree324f4962baced91ffd5cb09e37ac42f883492a29
parentd1df6ace7496aab6e298a8f6c4f582aa12b3a8ad
nfp: fix potential deadlock when canceling dim work

When port is linked down, the process which has acquired rtnl_lock
will wait for the in-progress dim work to finish, and the work also
acquires rtnl_lock, which may cause deadlock.

Currently IRQ_MOD registers can be configured by `ethtool -C` and
dim work, and which will take effect depends on the execution order,
rtnl_lock is useless here, so remove them.

Fixes: dad97c892088 ("nfp: add support for coalesce adaptive feature")
Signed-off-by: Yinjun Zhang <yinjun.zhang@corigine.com>
Signed-off-by: Louis Peens <louis.peens@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_common.c