Commit 57acc186 authored by Philippe Gerum's avatar Philippe Gerum
Browse files

evl/thread: drop call to obsolete force_commit_memory()

A process is now marked for COW-breaking on fork() upon the first call
to dovetail_init_altsched(), and must ensure its memory is locked via
a call to mlockall(MCL_CURRENT|MCL_FUTURE) as usual.

As a result, force_commit_memory() became pointless and was removed
from the Dovetail interface.
Signed-off-by: default avatarPhilippe Gerum <>
parent fa03182c
......@@ -1361,27 +1361,6 @@ void evl_notify_thread(struct evl_thread *thread,
static inline int commit_process_memory(void)
struct task_struct *p = current;
if (!(p->mm->def_flags & VM_LOCKED))
return -EINVAL;
return force_commit_memory();
#else /* !CONFIG_MMU */
static inline int commit_process_memory(void)
return 0;
#endif /* !CONFIG_MMU */
int evl_killall(int mask)
int nrkilled = 0, nrthreads, count;
......@@ -2321,13 +2300,13 @@ static const struct file_operations thread_fops = {
static int map_uthread_self(struct evl_thread *thread)
struct mm_struct *mm = current->mm;
struct evl_user_window *u_window;
struct cred *newcap;
int ret;
ret = commit_process_memory();
if (ret)
return ret;
/* mlockall(MCL_FUTURE) required. */
if (!(mm->def_flags & VM_LOCKED))
return -EINVAL;
u_window = evl_zalloc_chunk(&evl_shared_heap, sizeof(*u_window));
if (u_window == NULL)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment