aboutsummaryrefslogtreecommitdiff
path: root/fs/efivarfs
diff options
context:
space:
mode:
authorKevin Hao2023-12-21 14:49:16 +0800
committerJaegeuk Kim2023-12-26 13:05:56 -0800
commit94e7eb42414b6b1c11f14e0f760540993f429809 (patch)
tree2f89857a714cdad79d372f4ee7329b56a724010a /fs/efivarfs
parent86d7d57a3f096c8349b32a0cd5f6f314e4416a6d (diff)
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 'fs/efivarfs')
0 files changed, 0 insertions, 0 deletions