summaryrefslogtreecommitdiff
path: root/linux/shrinker.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-12-05 18:28:14 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-12-05 23:53:29 -0500
commitcf78a3f65cbe1bd82e89fcfb0b053be26d4a2d62 (patch)
tree49718549ab13ff4e547482ee979534754d8458c7 /linux/shrinker.c
parentf407121d18d2fdf3fd6a91f9a1569e453c2beaa9 (diff)
Disable shrinker thread shutdown
We seem to be hitting a rare crash in the exit path of fsck - when shutting down the shrinker thread. Disable exiting the shrinker thread as a workaround. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'linux/shrinker.c')
-rw-r--r--linux/shrinker.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/shrinker.c b/linux/shrinker.c
index dae3d293..361196ac 100644
--- a/linux/shrinker.c
+++ b/linux/shrinker.c
@@ -142,6 +142,11 @@ static void shrinker_thread_init(void)
BUG_ON(IS_ERR(shrinker_task));
}
+#if 0
+/*
+ * We seem to be hitting a rare segfault when shutting down the shrinker thread.
+ * Disabling this is going to cause some harmless warnings about memory leaks:
+ */
__attribute__((destructor(103)))
static void shrinker_thread_exit(void)
{
@@ -150,3 +155,4 @@ static void shrinker_thread_exit(void)
shrinker_task = NULL;
}
+#endif