diff options
author | Kevin Hao <haokexin@gmail.com> | 2023-12-20 07:37:57 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-12-27 14:34:52 +0000 |
commit | 3fb65f6bc7dc19ce32efd4ea26cd0f59ac328ad5 (patch) | |
tree | 1db70cd03c4bf66a64e7db37fb8e909b974cbf3c /include/net | |
parent | 2f7ccf1d8835975a92fae7704fa73cb2e49bc12f (diff) |
net: pktgen: Use wait_event_freezable_timeout() for freezable kthread
A freezable kernel thread can enter frozen state during freezing by
either calling try_to_freeze() or using wait_event_freezable() and its
variants. So for the following snippet of code in a kernel thread loop:
wait_event_interruptible_timeout();
try_to_freeze();
We can change it to a simple wait_event_freezable_timeout() and then
eliminate a function call.
Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions