36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
From b9dc76e232e0226a14ae3089e3be5c915f2bb981 Mon Sep 17 00:00:00 2001
|
|
From: Lianbo Jiang <lijiang@redhat.com>
|
|
Date: Mon, 10 Jan 2022 17:25:06 +0800
|
|
Subject: [PATCH 03/10] Fix for HZ calculation on Linux 5.14 and later
|
|
|
|
Kernel commit 3e9a99eba058 ("block/mq-deadline: Rename dd_init_queue()
|
|
and dd_exit_queue()") renamed dd_init_queue to dd_init_sched. Without
|
|
the patch, the 'help -m' may print incorrect hz value as follows:
|
|
|
|
crash> help -m | grep hz
|
|
hz: 1000 <---The correct hz value on ppc64le machine is 100.
|
|
^^^^
|
|
|
|
Fixes: b93027ce5c75 ("Add alternate HZ calculation using write_expire")
|
|
Signed-off-by: Lianbo Jiang <lijiang@redhat.com>
|
|
---
|
|
task.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/task.c b/task.c
|
|
index b5ddc88e0acb..76e184ae70b1 100644
|
|
--- a/task.c
|
|
+++ b/task.c
|
|
@@ -440,6 +440,8 @@ task_init(void)
|
|
}
|
|
} else if ((symbol_exists("dd_init_queue") &&
|
|
gdb_set_crash_scope(symbol_value("dd_init_queue"), "dd_init_queue")) ||
|
|
+ (symbol_exists("dd_init_sched") &&
|
|
+ gdb_set_crash_scope(symbol_value("dd_init_sched"), "dd_init_sched")) ||
|
|
(symbol_exists("deadline_init_queue") &&
|
|
gdb_set_crash_scope(symbol_value("deadline_init_queue"), "deadline_init_queue"))) {
|
|
char buf[BUFSIZE];
|
|
--
|
|
2.20.1
|
|
|