mm: ksm: remove unnecessary try_to_freeze()
authorKevin Hao <haokexin@gmail.com>
Wed, 13 Dec 2023 09:09:06 +0000 (17:09 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 20 Dec 2023 22:48:13 +0000 (14:48 -0800)
commitf55afd954c12ae9a0beb242e749d671555334fce
tree1097380ec41dc4e0ffbb15c19acd8c41d1a24152
parente3898efaffdb8e78639e68e997e3b8b6d0ed4ebc
mm: ksm: remove unnecessary try_to_freeze()

A freezable kernel thread can enter frozen state during freezing by
either calling try_to_freeze() or using wait_event_freezable() and its
variants. However, there is no need to use both methods simultaneously.

Link: https://lkml.kernel.org/r/20231213090906.1070985-1-haokexin@gmail.com
Signed-off-by: Kevin Hao <haokexin@gmail.com>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/ksm.c