]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/5.0.10/mlxsw-core-do-not-use-wq_mem_reclaim-for-mlxsw-workqueue.patch
Fixes for 4.19
[thirdparty/kernel/stable-queue.git] / releases / 5.0.10 / mlxsw-core-do-not-use-wq_mem_reclaim-for-mlxsw-workqueue.patch
CommitLineData
0ee3da53
GKH
1From foo@baz Sat Apr 20 16:43:09 CEST 2019
2From: Ido Schimmel <idosch@mellanox.com>
3Date: Wed, 10 Apr 2019 06:58:15 +0000
4Subject: mlxsw: core: Do not use WQ_MEM_RECLAIM for mlxsw workqueue
5
6From: Ido Schimmel <idosch@mellanox.com>
7
8[ Upstream commit b442fed1b724af0de087912a5718ddde1b87acbb ]
9
10The workqueue is used to periodically update the networking stack about
11activity / statistics of various objects such as neighbours and TC
12actions.
13
14It should not be called as part of memory reclaim path, so remove the
15WQ_MEM_RECLAIM flag.
16
17Fixes: 3d5479e92087 ("mlxsw: core: Remove deprecated create_workqueue")
18Signed-off-by: Ido Schimmel <idosch@mellanox.com>
19Acked-by: Jiri Pirko <jiri@mellanox.com>
20Signed-off-by: David S. Miller <davem@davemloft.net>
21Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
22---
23 drivers/net/ethernet/mellanox/mlxsw/core.c | 2 +-
24 1 file changed, 1 insertion(+), 1 deletion(-)
25
26--- a/drivers/net/ethernet/mellanox/mlxsw/core.c
27+++ b/drivers/net/ethernet/mellanox/mlxsw/core.c
28@@ -1912,7 +1912,7 @@ static int __init mlxsw_core_module_init
29 {
30 int err;
31
32- mlxsw_wq = alloc_workqueue(mlxsw_core_driver_name, WQ_MEM_RECLAIM, 0);
33+ mlxsw_wq = alloc_workqueue(mlxsw_core_driver_name, 0, 0);
34 if (!mlxsw_wq)
35 return -ENOMEM;
36 mlxsw_owq = alloc_ordered_workqueue("%s_ordered", 0,