diff options
author | 2024-06-05 15:20:58 +0800 | |
---|---|---|
committer | 2024-06-07 12:20:28 +0100 | |
commit | 968fde83841a8c23558dfbd0a0c69d636db52b55 (patch) | |
tree | 48d34b4cbc01bf25c0ed72ca619ec151d05e0cae /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | net: hns3: fix kernel crash problem in concurrent scenario (diff) | |
download | wireguard-linux-968fde83841a8c23558dfbd0a0c69d636db52b55.tar.xz wireguard-linux-968fde83841a8c23558dfbd0a0c69d636db52b55.zip |
net: hns3: add cond_resched() to hns3 ring buffer init process
Currently hns3 ring buffer init process would hold cpu too long with big
Tx/Rx ring depth. This could cause soft lockup.
So this patch adds cond_resched() to the process. Then cpu can break to
run other tasks instead of busy looping.
Fixes: a723fb8efe29 ("net: hns3: refine for set ring parameters")
Signed-off-by: Jie Wang <wangjie125@huawei.com>
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions