]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
qlge: Fix deadlock when cancelling worker.
authorRon Mercer <ron.mercer@qlogic.com>
Sat, 11 Dec 2010 11:06:50 +0000 (11:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 12 Dec 2010 23:02:57 +0000 (15:02 -0800)
commit4d7b6b5d247aa71ea27709b9eac1ba6e752fbe87
tree0af7a055a47899bd8a6475e182628b5fb1daa5b2
parent36eac2130cdbac08606bb2c05775e52ab79b163c
qlge: Fix deadlock when cancelling worker.

Removing usage of rtnl_lock() to protect firmware interface registers.
These registers are accessed in some worker threads and can create a
deadlock if rtnl_lock is taken by upper layers while the worker is still
pending.
We remove rtnl_lock and use a driver mutex just while mailboxes are
accessed.

Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlge/qlge.h
drivers/net/qlge/qlge_main.c
drivers/net/qlge/qlge_mpi.c