From nobody Mon Feb 9 04:46:04 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.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.129.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=1658499962; cv=none; d=zohomail.com; s=zohoarc; b=U2m3aAG93wPbYk3oXvKXG6rzwxGw++jGHAqEFcG9RYgTyT5cItMtVuEc1kUKgk9yl5oTT4Wd+MLOqQYF+To+ijxaw9X3J8l3lEBaVoatguDZz5Ro4SID3Pv36GIcH0sT2w4UPPMwxO3iXDVD992nD3/Mbou3hQXSYpIMJFoIzc4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1658499962; 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=QXnDa3QlBWIrRYnkImFUt7HJ/imZad3XvxjQDQaoVNM=; b=VCmV1zpUfkaa7sNEG+BPw7MlVE5webCN37I6n3fBIbNZ4efMRXyTneQZ0PDOCAkXQVPyG3ZogBwjAu9ufkBe8tVvuGFkDecAllnxd3cTXjSI6eHHVbfPXr9Lbpj5C+3wtpBzCLt7DlEOpFGPYDLAAyhUDD1qobRQFgktdOJA+s0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.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.129.124]) by mx.zohomail.com with SMTPS id 16584999623771010.0502908359565; Fri, 22 Jul 2022 07:26:02 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-671-oC0YSh0PMtS3TEDv9yE-tw-1; Fri, 22 Jul 2022 10:25:54 -0400 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DA14029DD98D; Fri, 22 Jul 2022 14:25:50 +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 C781E492C3B; Fri, 22 Jul 2022 14:25:50 +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 96413194704D; Fri, 22 Jul 2022 14:25:50 +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 284581947049 for ; Fri, 22 Jul 2022 14:25:47 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 1B50F492CA5; Fri, 22 Jul 2022 14:25:47 +0000 (UTC) Received: from fedora.brq.redhat.com (unknown [10.34.244.12]) by smtp.corp.redhat.com (Postfix) with ESMTP id BA2D7492C3B 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=1658499961; 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=QXnDa3QlBWIrRYnkImFUt7HJ/imZad3XvxjQDQaoVNM=; b=Q1DUyQx8JNe/tcakJm5YqqNcggPpYXUaCYhqVHb+lKfzIsFx+Z3/gOG/C32fQ/YEEiNzZt FEf5dOtkQ/oBxDVa1Uh4J6ye5q0bmXqRu8AbDPWdQCNNvrJ41rUU0Ijprt5kv/GiU6nm3k eB9oGlBYWyldkqYCWIH9CMp39SzDV3c= X-MC-Unique: oC0YSh0PMtS3TEDv9yE-tw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Kristina Hanicova To: libvir-list@redhat.com Subject: [PATCH 4/4] CH: use virDomainObjResetJob() Date: Fri, 22 Jul 2022 16:25:34 +0200 Message-Id: <9fb548c84826d249b951be89e16518e7ccb29f42.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.9 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: 1658499963259100005 Content-Type: text/plain; charset="utf-8"; x-default="true" This patch removes and replaces virCHDomainObjResetJob() with general virDomainObjResetJob(). Signed-off-by: Kristina Hanicova --- src/ch/ch_domain.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/ch/ch_domain.c b/src/ch/ch_domain.c index ae53c6fe05..499d31cf4a 100644 --- a/src/ch/ch_domain.c +++ b/src/ch/ch_domain.c @@ -32,15 +32,6 @@ =20 VIR_LOG_INIT("ch.ch_domain"); =20 -static void -virCHDomainObjResetJob(virCHDomainObjPrivate *priv) -{ - virDomainJobObj *job =3D &priv->job; - - job->active =3D VIR_JOB_NONE; - job->owner =3D 0; -} - static void virCHDomainObjFreeJob(virCHDomainObjPrivate *priv) { @@ -88,7 +79,7 @@ virCHDomainObjBeginJob(virDomainObj *obj, virDomainJob jo= b) } } =20 - virCHDomainObjResetJob(priv); + virDomainObjResetJob(&priv->job); =20 VIR_DEBUG("Starting job: %s", virDomainJobTypeToString(job)); priv->job.active =3D job; @@ -112,7 +103,7 @@ virCHDomainObjEndJob(virDomainObj *obj) VIR_DEBUG("Stopping job: %s", virDomainJobTypeToString(job)); =20 - virCHDomainObjResetJob(priv); + virDomainObjResetJob(&priv->job); virCondSignal(&priv->job.cond); } =20 --=20 2.35.3