diff options
author | Kevin Hao <haokexin@gmail.com> | 2023-12-21 09:49:16 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2023-12-27 00:05:56 +0300 |
commit | 94e7eb42414b6b1c11f14e0f760540993f429809 (patch) | |
tree | 2f89857a714cdad79d372f4ee7329b56a724010a /init | |
parent | 86d7d57a3f096c8349b32a0cd5f6f314e4416a6d (diff) | |
download | linux-94e7eb42414b6b1c11f14e0f760540993f429809.tar.xz |
f2fs: 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 the function calls to try_to_freeze() and freezing().
Signed-off-by: Kevin Hao <haokexin@gmail.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions