]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - linux/shrinker.c
Disable shrinker thread shutdown
[bcachefs-tools-debian] / linux / shrinker.c
index dae3d29337349821b1257b5f39659949570b4b6d..361196acb39e0e2e67c659672f4ad5bfcd7db6cc 100644 (file)
@@ -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