diff options
| author | Jie Wang <[email protected]> | 2024-06-05 07:20:58 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2024-06-07 11:20:28 +0000 |
| commit | 968fde83841a8c23558dfbd0a0c69d636db52b55 (patch) | |
| tree | 48d34b4cbc01bf25c0ed72ca619ec151d05e0cae /net/ipv6/tcp_ipv6.c | |
| parent | net: hns3: fix kernel crash problem in concurrent scenario (diff) | |
| download | kernel-968fde83841a8c23558dfbd0a0c69d636db52b55.tar.gz kernel-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 <[email protected]>
Signed-off-by: Jijie Shao <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
0 files changed, 0 insertions, 0 deletions
