net: hns3: allocate WQ with WQ_MEM_RECLAIM flag
authorYunsheng Lin <linyunsheng@huawei.com>
Sat, 14 Dec 2019 02:06:40 +0000 (10:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Dec 2019 00:12:25 +0000 (16:12 -0800)
commit0ea68902256e6cc705c94d1844dd8cf0805fd3e9
treec37f2012a58cfaff338edd3b0934e81ce1ce714e
parentff200099d271cb14e4415449559da7cc6a38f4a1
net: hns3: allocate WQ with WQ_MEM_RECLAIM flag

The hns3 driver may be used in memory reclaim path when it
is the low level transport of a network file system, so it
needs to guarantee forward progress even under memory pressure.

This patch allocates a private WQ with WQ_MEM_RECLAIM set for
both hclge_main and hclgevf_main modules.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c