Commit d2b7244f authored by Ingo Molnar's avatar Ingo Molnar Committed by Linus Torvalds

[PATCH] thread release infrastructure

it is much cleaner to pass in the address of the user-space VM lock -
this will also enable arbitrary implementations of the stack-unlock, as
the fifth clone() parameter.
parent 86ae817e
...@@ -625,10 +625,8 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long esp, ...@@ -625,10 +625,8 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long esp,
/* /*
* Does the userspace VM want any unlock on mm_release()? * Does the userspace VM want any unlock on mm_release()?
*/ */
if (clone_flags & CLONE_RELEASE_VM) { if (clone_flags & CLONE_RELEASE_VM)
childregs->esp -= sizeof(0UL); p->user_vm_lock = (long *) childregs->edi;
p->user_vm_lock = (long *) esp;
}
return 0; return 0;
} }
......
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