diff options
author | Anish Bhatt <anish@chelsio.com> | 2014-11-15 01:38:31 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-16 20:50:52 +0100 |
commit | 52cff74eef5dd7bdab759300e7d1ca36eba18254 (patch) | |
tree | eaf4980da5e83b19429e9f04589865eea0276394 /lib/crc8.c | |
parent | ieee802154: fix error handling in ieee802154fake_probe() (diff) | |
download | linux-52cff74eef5dd7bdab759300e7d1ca36eba18254.tar.xz linux-52cff74eef5dd7bdab759300e7d1ca36eba18254.zip |
dcbnl : Disable software interrupts before taking dcb_lock
Solves possible lockup issues that can be seen from firmware DCB agents calling
into the DCB app api.
DCB firmware event queues can be tied in with NAPI so that dcb events are
generated in softIRQ context. This can results in calls to dcb_*app()
functions which try to take the dcb_lock.
If the the event triggers while we also have the dcb_lock because lldpad or
some other agent happened to be issuing a get/set command we could see a cpu
lockup.
This code was not originally written with firmware agents in mind, hence
grabbing dcb_lock from softIRQ context was not considered.
Signed-off-by: Anish Bhatt <anish@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/crc8.c')
0 files changed, 0 insertions, 0 deletions