[RFC,20/24] job: call job_enter from job_user_pause
diff mbox series

Message ID 20191115141444.24155-21-vsementsov@virtuozzo.com
State New
Headers show
  • backup performance: block_status + async
Related show

Commit Message

Vladimir Sementsov-Ogievskiy Nov. 15, 2019, 2:14 p.m. UTC
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>
 job.c | 1 +
 1 file changed, 1 insertion(+)

diff mbox series

diff --git a/job.c b/job.c
index 04409b40aa..39c7baa436 100644
--- a/job.c
+++ b/job.c
@@ -557,6 +557,7 @@  void job_user_pause(Job *job, Error **errp)
     job->user_paused = true;
+    job_enter(job);
 bool job_user_paused(Job *job)