From nobody Mon Feb 9 03:00:06 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1658499954; cv=none; d=zohomail.com; s=zohoarc; b=mANhCDVc6BWbdXhHPvuKi3H2z0XG9F9C2Sc5uZz6qwgeacU6uOKQDuFryH6AxudOCK73xVWyFcQ3s4AUH2mImFMnLNCbtl+b17w3JpU+geX1wlInlUUTAESm/kJJ5uMwfRXGy4xEjz5FtoFPpLt6aUJiicR9RKDUVruJs6kXvjg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1658499954; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=vIaJt/Yo3Vw46//0QkFGPeH9EahlwdC4ZSOQOiRysIA=; b=Z4ViVZhNO4AsRXX9oAgz2ZQLxIn+PFrZq7Ry+Kpv9dIC6C7Nn1Tls3WoI9jKZkSs8nyeueaRfAG3IIHCu9xZR6BbqCC9lIO6KSTyI1IHfEjY3opoGgjdHFNF9c3IIASEtGki8IG3N4aEAzL0St7jMREDBD+gxNffVyf6aqa9v0g= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1658499954345925.3930313191861; Fri, 22 Jul 2022 07:25:54 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-154-AFNwaT09M5-FWJys-mTO-Q-1; Fri, 22 Jul 2022 10:25:51 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6B8CF85829E; Fri, 22 Jul 2022 14:25:48 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 55D90141511A; Fri, 22 Jul 2022 14:25:48 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id E097E1947BB1; Fri, 22 Jul 2022 14:25:47 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 9ECB91947049 for ; Fri, 22 Jul 2022 14:25:46 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 81505492CA5; Fri, 22 Jul 2022 14:25:46 +0000 (UTC) Received: from fedora.brq.redhat.com (unknown [10.34.244.12]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2BBC7492C3B for ; Fri, 22 Jul 2022 14:25:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1658499953; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=vIaJt/Yo3Vw46//0QkFGPeH9EahlwdC4ZSOQOiRysIA=; b=LpAdYKQn3AchcazQHv3hR1gV2/nCQNo1mCgob+tIkN42t2v21/d0/sdW/UaUs8XziVkami H8grVA8kLowWzEW8s4Ss+iVXEy4dT7YP4YAnCOE/jOslIiuE/nG7da8hRO9YhYyc02hnDW 3yqXxHlLL+P9VS+xCNhS1iGIdFtCbKE= X-MC-Unique: AFNwaT09M5-FWJys-mTO-Q-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Kristina Hanicova To: libvir-list@redhat.com Subject: [PATCH 3/4] LXC: use virDomainObjResetJob() Date: Fri, 22 Jul 2022 16:25:33 +0200 Message-Id: <1d251234b073a3aef92dd45b665b893880803a91.1658499859.git.khanicov@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1658499955213100001 Content-Type: text/plain; charset="utf-8"; x-default="true" This patch removes and replaces virLXCDomainObjResetJob() with general virDomainObjResetJob(). Signed-off-by: Kristina Hanicova --- src/lxc/lxc_domain.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/lxc/lxc_domain.c b/src/lxc/lxc_domain.c index fed4ae088a..6f048a128a 100644 --- a/src/lxc/lxc_domain.c +++ b/src/lxc/lxc_domain.c @@ -35,15 +35,6 @@ =20 VIR_LOG_INIT("lxc.lxc_domain"); =20 -static void -virLXCDomainObjResetJob(virLXCDomainObjPrivate *priv) -{ - virDomainJobObj *job =3D &priv->job; - - job->active =3D VIR_JOB_NONE; - job->owner =3D 0; -} - static void virLXCDomainObjFreeJob(virLXCDomainObjPrivate *priv) { @@ -82,7 +73,7 @@ virLXCDomainObjBeginJob(virLXCDriver *driver G_GNUC_UNUSE= D, goto error; } =20 - virLXCDomainObjResetJob(priv); + virDomainObjResetJob(&priv->job); =20 VIR_DEBUG("Starting job: %s", virDomainJobTypeToString(job)); priv->job.active =3D job; @@ -124,7 +115,7 @@ virLXCDomainObjEndJob(virLXCDriver *driver G_GNUC_UNUSE= D, VIR_DEBUG("Stopping job: %s", virDomainJobTypeToString(job)); =20 - virLXCDomainObjResetJob(priv); + virDomainObjResetJob(&priv->job); virCondSignal(&priv->job.cond); } =20 --=20 2.35.3