Commit 446b6526 authored by Pavel Emelyanov's avatar Pavel Emelyanov

optimize thread-less restore a bit

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 351537c4
......@@ -598,7 +598,7 @@ long restore_task(struct task_restore_core_args *args)
* +--------------------------------------------------------------------------+
*/
if (args->nr_threads) {
if (args->nr_threads > 1) {
struct thread_restore_args *thread_args = args->thread_args;
long clone_flags = CLONE_VM | CLONE_FILES | CLONE_SIGHAND |
CLONE_THREAD | CLONE_SYSVSEM;
......
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