2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 13:58:34 +00:00

rst: Remove threads restore serialization

This thing was introduced by 01f8f8f4 to help not mixing
per-thread error messages in log files. Now messages are
not mixed by other means, so this thing is useless.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov 2013-08-12 09:17:02 +04:00
parent 0a6da43db9
commit 01f113ecd3
3 changed files with 0 additions and 8 deletions

View File

@ -2372,8 +2372,6 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core)
if (ret < 0)
goto err;
mutex_init(&task_args->rst_lock);
/*
* Now prepare run-time data for threads restore.
*/

View File

@ -108,8 +108,6 @@ struct task_restore_core_args {
int logfd;
unsigned int loglevel;
mutex_t rst_lock;
/* threads restoration */
int nr_threads; /* number of threads */
int nr_zombies;

View File

@ -286,8 +286,6 @@ long __export_restore_thread(struct thread_restore_args *args)
if (restore_thread_common(rt_sigframe, args))
goto core_restore_end;
mutex_unlock(&args->ta->rst_lock);
ret = restore_creds(&args->ta->creds);
if (ret)
goto core_restore_end;
@ -817,8 +815,6 @@ long __export_restore_task(struct task_restore_core_args *args)
if (thread_args[i].pid == args->t->pid)
continue;
mutex_lock(&args->rst_lock);
new_sp =
RESTORE_ALIGN_STACK((long)thread_args[i].mem_zone.stack,
sizeof(thread_args[i].mem_zone.stack));