All of lore.kernel.org
 help / color / mirror / Atom feed
* [merged mm-stable] mm-ksm-remove-unnecessary-try_to_freeze.patch removed from -mm tree
@ 2023-12-20 22:49 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2023-12-20 22:49 UTC (permalink / raw)
  To: mm-commits, rafael, pavel, david, aarcange, haokexin, akpm


The quilt patch titled
     Subject: mm: ksm: remove unnecessary try_to_freeze()
has been removed from the -mm tree.  Its filename was
     mm-ksm-remove-unnecessary-try_to_freeze.patch

This patch was dropped because it was merged into the mm-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Kevin Hao <haokexin@gmail.com>
Subject: mm: ksm: remove unnecessary try_to_freeze()
Date: Wed, 13 Dec 2023 17:09:06 +0800

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 |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

--- a/mm/ksm.c~mm-ksm-remove-unnecessary-try_to_freeze
+++ a/mm/ksm.c
@@ -2604,11 +2604,9 @@ static int ksm_scan_thread(void *nothing
 			ksm_do_scan(ksm_thread_pages_to_scan);
 		mutex_unlock(&ksm_thread_mutex);
 
-		try_to_freeze();
-
 		if (ksmd_should_run()) {
 			sleep_ms = READ_ONCE(ksm_thread_sleep_millisecs);
-			wait_event_interruptible_timeout(ksm_iter_wait,
+			wait_event_freezable_timeout(ksm_iter_wait,
 				sleep_ms != READ_ONCE(ksm_thread_sleep_millisecs),
 				msecs_to_jiffies(sleep_ms));
 		} else {
_

Patches currently in -mm which might be from haokexin@gmail.com are

mm-khugepaged-remove-redundant-try_to_freeze.patch
fork-remove-redundant-task_uninterruptible.patch
nilfs2-add-missing-set_freezable-for-freezable-kthread.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-20 22:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-20 22:49 [merged mm-stable] mm-ksm-remove-unnecessary-try_to_freeze.patch removed from -mm tree Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.