qed: Don't use attention PTT for configuring BW
authorMintz, Yuval <Yuval.Mintz@cavium.com>
Mon, 27 Feb 2017 09:06:33 +0000 (11:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Feb 2017 14:22:09 +0000 (09:22 -0500)
commit6f437d431930ff86e4a971d29321951faadb97c7
tree696a4791873be6b94a1b5e91ea3ddb366a200368
parentfd3c615ae13a853ab26211e14f70b416cc8f8134
qed: Don't use attention PTT for configuring BW

Commit 653d2ffd6405 ("qed*: Fix link indication race") introduced another
race - one of the inner functions called from the link-change flow is
explicitly using the slowpath context dedicated PTT instead of gaining
that PTT from the caller. Since this flow can now be called from
a different context as well, we're in risk of the PTT breaking.

Fixes: 653d2ffd6405 ("qed*: Fix link indication race")
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed.h
drivers/net/ethernet/qlogic/qed/qed_dev.c
drivers/net/ethernet/qlogic/qed/qed_mcp.c