mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 13:05:27 +00:00
LXC: use virDomainObjResetJob()
This patch removes and replaces virLXCDomainObjResetJob() with general virDomainObjResetJob(). Signed-off-by: Kristina Hanicova <khanicov@redhat.com> Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
2ee4c061be
commit
50f91e61d2
@ -35,15 +35,6 @@
|
||||
|
||||
VIR_LOG_INIT("lxc.lxc_domain");
|
||||
|
||||
static void
|
||||
virLXCDomainObjResetJob(virLXCDomainObjPrivate *priv)
|
||||
{
|
||||
virDomainJobObj *job = &priv->job;
|
||||
|
||||
job->active = VIR_JOB_NONE;
|
||||
job->owner = 0;
|
||||
}
|
||||
|
||||
static void
|
||||
virLXCDomainObjFreeJob(virLXCDomainObjPrivate *priv)
|
||||
{
|
||||
@ -82,7 +73,7 @@ virLXCDomainObjBeginJob(virLXCDriver *driver G_GNUC_UNUSED,
|
||||
goto error;
|
||||
}
|
||||
|
||||
virLXCDomainObjResetJob(priv);
|
||||
virDomainObjResetJob(&priv->job);
|
||||
|
||||
VIR_DEBUG("Starting job: %s", virDomainJobTypeToString(job));
|
||||
priv->job.active = job;
|
||||
@ -124,7 +115,7 @@ virLXCDomainObjEndJob(virLXCDriver *driver G_GNUC_UNUSED,
|
||||
VIR_DEBUG("Stopping job: %s",
|
||||
virDomainJobTypeToString(job));
|
||||
|
||||
virLXCDomainObjResetJob(priv);
|
||||
virDomainObjResetJob(&priv->job);
|
||||
virCondSignal(&priv->job.cond);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user