[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v3 10/25] job: call job_enter from job_user_pause

From: Vladimir Sementsov-Ogievskiy
Subject: [PATCH v3 10/25] job: call job_enter from job_user_pause
Date: Mon, 26 Oct 2020 20:18:00 +0300

If main job coroutine called job_yield (while some background process
is in progress), we should give it a chance to call job_pause_point().
It will be used in backup, when moved on async block-copy.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
 job.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/job.c b/job.c
index 8fecf38960..50070ae6b1 100644
--- a/job.c
+++ b/job.c
@@ -578,6 +578,7 @@ void job_user_pause(Job *job, Error **errp)
     job->user_paused = true;
+    job_enter(job);
 bool job_user_paused(Job *job)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]