Files
linux/net/core
Kevin Hao 3fb65f6bc7 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>
2023-12-27 14:34:52 +00:00
..
2021-12-16 07:18:35 -08:00
2023-11-28 15:48:39 +01:00
2022-11-21 20:36:30 -08:00
2023-12-15 11:01:27 +00:00
2022-12-12 15:04:39 -08:00
2023-12-13 16:16:40 -08:00