diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-01-12 16:36:45 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2021-01-12 16:36:45 -0500 |
commit | c1dcd67f7daa03c72c5f9ffac050f9587706163a (patch) | |
tree | 19da70a2d27fc4396b476126660e65c00621ba10 /linux | |
parent | f39f0bde7875aceb3e82a330f3a86223c6dd8af4 (diff) |
Don't use mlockall()
We're hitting -ENOMEM while running fsck - we appear to need memory
overcommit, which mlockall() disables.
Diffstat (limited to 'linux')
-rw-r--r-- | linux/sched.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/linux/sched.c b/linux/sched.c index d926e20f..1c7198d2 100644 --- a/linux/sched.c +++ b/linux/sched.c @@ -106,8 +106,6 @@ static void sched_init(void) { struct task_struct *p = malloc(sizeof(*p)); - mlockall(MCL_CURRENT|MCL_FUTURE); - memset(p, 0, sizeof(*p)); p->state = TASK_RUNNING; |