diff options
author | Jie Wang <wangjie125@huawei.com> | 2024-06-05 10:20:58 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-06-07 14:20:28 +0300 |
commit | 968fde83841a8c23558dfbd0a0c69d636db52b55 (patch) | |
tree | 48d34b4cbc01bf25c0ed72ca619ec151d05e0cae /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 12cda920212a49fa22d9e8b9492ac4ea013310a4 (diff) | |
download | linux-968fde83841a8c23558dfbd0a0c69d636db52b55.tar.xz |
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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions