mlxsw: core: Do not use WQ_MEM_RECLAIM for EMAD workqueue
authorIdo Schimmel <idosch@mellanox.com>
Wed, 10 Apr 2019 06:58:13 +0000 (06:58 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2019 17:42:31 +0000 (19:42 +0200)
commitab533b384ecfd88b888ca269479735d485f5fcaa
treedf2402e86b1376b0d4d1bb159f42ea78de40727b
parent1a8f34af49dc703b5bcf85062987cdb1a6f8a8e5
mlxsw: core: Do not use WQ_MEM_RECLAIM for EMAD workqueue

[ Upstream commit a8c133b06183c529c51cd0d54eb57d6b7078370c ]

The EMAD workqueue is used to handle retransmission of EMAD packets that
contain configuration data for the device's firmware.

Given the workers need to allocate these packets and that the code is
not called as part of memory reclaim path, remove the WQ_MEM_RECLAIM
flag.

Fixes: d965465b60ba ("mlxsw: core: Fix possible deadlock")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
drivers/net/ethernet/mellanox/mlxsw/core.c