]>
Commit | Line | Data |
---|---|---|
0ee3da53 GKH |
1 | From foo@baz Sat Apr 20 16:43:09 CEST 2019 |
2 | From: Ido Schimmel <idosch@mellanox.com> | |
3 | Date: Wed, 10 Apr 2019 06:58:15 +0000 | |
4 | Subject: mlxsw: core: Do not use WQ_MEM_RECLAIM for mlxsw workqueue | |
5 | ||
6 | From: Ido Schimmel <idosch@mellanox.com> | |
7 | ||
8 | [ Upstream commit b442fed1b724af0de087912a5718ddde1b87acbb ] | |
9 | ||
10 | The workqueue is used to periodically update the networking stack about | |
11 | activity / statistics of various objects such as neighbours and TC | |
12 | actions. | |
13 | ||
14 | It should not be called as part of memory reclaim path, so remove the | |
15 | WQ_MEM_RECLAIM flag. | |
16 | ||
17 | Fixes: 3d5479e92087 ("mlxsw: core: Remove deprecated create_workqueue") | |
18 | Signed-off-by: Ido Schimmel <idosch@mellanox.com> | |
19 | Acked-by: Jiri Pirko <jiri@mellanox.com> | |
20 | Signed-off-by: David S. Miller <davem@davemloft.net> | |
21 | Signed-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, |