* [merged mm-nonmm-stable] latencytop-use-the-last-element-of-latency_record-of-system.patch removed from -mm tree
@ 2022-09-12 4:57 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-09-12 4:57 UTC (permalink / raw)
To: mm-commits, viro, mcgrof, akpm, wuchi.zero, akpm
The quilt patch titled
Subject: latencytop: use the last element of latency_record of system
has been removed from the -mm tree. Its filename was
latencytop-use-the-last-element-of-latency_record-of-system.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: wuchi <wuchi.zero@gmail.com>
Subject: latencytop: use the last element of latency_record of system
Date: Sat, 3 Sep 2022 21:52:33 +0800
In account_global_scheduler_latency(), when we don't find the matching
latency_record we try to select one which is unused in
latency_record[MAXLR], but the condition will skip the last one.
if (i >= MAXLR-1)
Fix that.
Link: https://lkml.kernel.org/r/20220903135233.5225-1-wuchi.zero@gmail.com
Signed-off-by: wuchi <wuchi.zero@gmail.com>
Reviewed-by: Andrew Morton <akpm@linux-foudation.org>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
kernel/latencytop.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/kernel/latencytop.c~latencytop-use-the-last-element-of-latency_record-of-system
+++ a/kernel/latencytop.c
@@ -112,7 +112,7 @@ static void __sched
account_global_scheduler_latency(struct task_struct *tsk,
struct latency_record *lat)
{
- int firstnonnull = MAXLR + 1;
+ int firstnonnull = MAXLR;
int i;
/* skip kernel threads for now */
@@ -150,7 +150,7 @@ account_global_scheduler_latency(struct
}
i = firstnonnull;
- if (i >= MAXLR - 1)
+ if (i >= MAXLR)
return;
/* Allocted a new one: */
_
Patches currently in -mm which might be from wuchi.zero@gmail.com are
lib-debugobjects-fix-stat-count-and-optimize-debug_objects_mem_init.patch
relay-use-kvcalloc-to-alloc-page-array-in-relay_alloc_page_array.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-12 4:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-12 4:57 [merged mm-nonmm-stable] latencytop-use-the-last-element-of-latency_record-of-system.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.