mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-02 00:00:03 +03:00
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>
This commit is contained in:
parent
f407121d18
commit
cf78a3f65c
@ -142,6 +142,11 @@ static void shrinker_thread_init(void)
|
|||||||
BUG_ON(IS_ERR(shrinker_task));
|
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)))
|
__attribute__((destructor(103)))
|
||||||
static void shrinker_thread_exit(void)
|
static void shrinker_thread_exit(void)
|
||||||
{
|
{
|
||||||
@ -150,3 +155,4 @@ static void shrinker_thread_exit(void)
|
|||||||
|
|
||||||
shrinker_task = NULL;
|
shrinker_task = NULL;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user