Don't use mlockall()

We're hitting -ENOMEM while running fsck - we appear to need memory
overcommit, which mlockall() disables.
This commit is contained in:
Kent Overstreet 2021-01-12 16:36:45 -05:00
parent f39f0bde78
commit c1dcd67f7d

View File

@ -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;