From nobody Sun Feb 8 18:31:09 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=1659530783; cv=none; d=zohomail.com; s=zohoarc; b=Bqn4blCZgGK1P7LBP2TVu4smg2HSmqk8c1ZNnOxaQtOJaM/1hr/Zm2M0yHfV7QkXkWvvReOFH8FFVhRID1vOBbJ0s+39pYz/tw5KltX5LG8U/ADhuj3zWDbgUvFUrR9E5nAkqHydfJgBlv7mRzW+DvzVzaPItssqBVKLNYoiggg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1659530783; 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=VKHAnS0KeitV9yNnfnnSwpSLHCCpdNwKVSNTKRs2emU=; b=JsuB1dnk6rfHjQB/BLAc7fNDS8ndL+3uV24iPhBwc77tM0/HsUJ1w+p/wrVkUhYJBk3nK3zSN+PQ+7Lbj+ddO31UprKEkI/a43qrzy5QhOATxdeUCEu3HEPMF9mYrSmrbhLrF515nedagvUalZ4AbPQtYUj3rH3I8Zm0vY4t2YM= 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 1659530783043704.8715176492123; Wed, 3 Aug 2022 05:46:23 -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-484-0NNZXMWjMLWEgjNUo9Y4Hw-1; Wed, 03 Aug 2022 08:44:54 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3F0DB1035376; Wed, 3 Aug 2022 12:44:52 +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 2C4DD404E4D3; Wed, 3 Aug 2022 12:44:52 +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 DCF771946A62; Wed, 3 Aug 2022 12:44:51 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 362BF1946A5C for ; Wed, 3 Aug 2022 12:44:46 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 14DD3C28100; Wed, 3 Aug 2022 12:44:46 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.43.2.166]) by smtp.corp.redhat.com (Postfix) with ESMTP id B3ADAC28136 for ; Wed, 3 Aug 2022 12:44:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1659530782; 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=VKHAnS0KeitV9yNnfnnSwpSLHCCpdNwKVSNTKRs2emU=; b=VsSrsKOLzvZIcF4a3JKnohzWr8Gl09+U3PhTC92EPKixqwynGcC34yitidMsKWW0DLBdRo XJHwbaQ1hrcf3gykW8/NcRYU2UFaovdRAuXnS1cF6t67sa5hqxO7cogUafQ0zbaAmzPPpw Ub6WnpRBDsS8/Gsbbojsf5MG1EX2yFE= X-MC-Unique: 0NNZXMWjMLWEgjNUo9Y4Hw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Kristina Hanicova To: libvir-list@redhat.com Subject: [PATCH 06/11] libxl: use virDomainObjClearJob() instead of libxlDomainObjFreeJob() Date: Wed, 3 Aug 2022 14:43:17 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8 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.84 on 10.11.54.2 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: 1659530784768100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Signed-off-by: Kristina Hanicova --- src/libxl/libxl_domain.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/libxl/libxl_domain.c b/src/libxl/libxl_domain.c index 467c1ee914..9a23598512 100644 --- a/src/libxl/libxl_domain.c +++ b/src/libxl/libxl_domain.c @@ -44,13 +44,6 @@ VIR_LOG_INIT("libxl.libxl_domain"); =20 =20 -static void -libxlDomainObjFreeJob(libxlDomainObjPrivate *priv) -{ - ignore_value(virCondDestroy(&priv->job.cond)); - virDomainJobDataFree(priv->job.current); -} - /* Give up waiting for mutex after 30 seconds */ #define LIBXL_JOB_WAIT_TIME (1000ull * 30) =20 @@ -185,7 +178,7 @@ libxlDomainObjPrivateFree(void *data) libxlDomainObjPrivate *priv =3D data; =20 g_free(priv->lockState); - libxlDomainObjFreeJob(priv); + virDomainObjClearJob(&priv->job); virChrdevFree(priv->devs); g_free(priv); } --=20 2.37.1