From nobody Mon Feb 9 02:51:06 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1586527002; cv=none; d=zohomail.com; s=zohoarc; b=lxMNAH3qzCn/ioNnUu5Umjsju5hF3Qv2+LQV/OuFEmDRGYNxiSMb52W8faIR8qCKNErYy2Br/S+F2OiQ0oh5nnYxPbHbo+CyY7DCIuK2SHlgcA7USWOD5xmRvtdrEZh5rB4Zha/0tjJDLTRASZhXTqFa0CgNTLiQM3UYH6uw2iI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1586527002; h=Content-Type:Content-Transfer-Encoding:Cc: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=5PtK77CJmpH3s5S9V85o1MHt2rFx0QxbLcWm3ykpsqY=; b=hMcVY/Jf6HS8yTeoowBnejY515uuEDD81ERumxfz6m92Z89c7/BuyuQK6yjSSkYC5k5PxBH9SKpi1q+GTNoEF9diUhhCXwmtDIhgnwaF8w7VZsCor+T8JMGPAe4WTCqJa1nbZStlZwnXBw/Ad8dkdf++3cOUYkZ3IPO35sTMUVw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1586527002350358.9523513570723; Fri, 10 Apr 2020 06:56:42 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-206-EAk6dY5lO_udyzNGP50cvQ-1; Fri, 10 Apr 2020 09:56:38 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8DBD018B5F81; Fri, 10 Apr 2020 13:56:32 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5CE2760C87; Fri, 10 Apr 2020 13:56:32 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 1628E180350B; Fri, 10 Apr 2020 13:56:32 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 03ADu7PU023222 for ; Fri, 10 Apr 2020 09:56:07 -0400 Received: by smtp.corp.redhat.com (Postfix) id 7798D2166B35; Fri, 10 Apr 2020 13:56:07 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast06.extmail.prod.ext.rdu2.redhat.com [10.11.55.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 73DEC2166B34 for ; Fri, 10 Apr 2020 13:56:07 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5A369185A78E for ; Fri, 10 Apr 2020 13:56:07 +0000 (UTC) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-156-42L3gJQ4M0WA604P2VrnEA-1; Fri, 10 Apr 2020 09:56:05 -0400 Received: by mail-wr1-f65.google.com with SMTP id 65so2414959wrl.1 for ; Fri, 10 Apr 2020 06:56:04 -0700 (PDT) Received: from localhost.localdomain (public-gprs377075.centertel.pl. [37.47.104.52]) by smtp.gmail.com with ESMTPSA id c11sm3066319wrt.24.2020.04.10.06.56.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Apr 2020 06:56:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1586527001; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=5PtK77CJmpH3s5S9V85o1MHt2rFx0QxbLcWm3ykpsqY=; b=PQ3srCjVwV7IXJ8lepb0APofbba4JIWhRAKCHvbprrYgB4PrzFQ2aM5GIhnQcaIxBNtiul uXYkpKRDVdofK9fsS52DXf+QR8Pko2sD8PuLULs6KWcVU9aepPip9MK8bDA5B+xg3OCUhN QT/jXnGzv6BfmWzIXenmR5nQwCohrLE= X-MC-Unique: EAk6dY5lO_udyzNGP50cvQ-1 X-MC-Unique: 42L3gJQ4M0WA604P2VrnEA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CYEGLIkw0JxXZpHBOkqIuLweXMVrzLkzU6fM/xpb//4=; b=QdvZghdhSGAZBZFGTSsuNCqeC6XdPK4BeNQi4u1w5Xzc1uLZ0Wl6bRaY/YuwNGquEL it19PUfwKkCmHbPhH4HDW6le4ca0Q0q+/DPrmFAHyLhQM85haXnX05+TuGB1Brcut/y6 Vv0IsoNah+f9/YV/m0kEIpJ1NKiXSaPXL9+2zPDcC/vEzt2Il8FHOo3pQmuPYr7a7Qqf UDRActuIbKkvd04mkPwcw9Cw5L3kw3CY2EJ6TvKPI+a3orwvtKFzKyxI63cmfuwCXG6v vADZFjdTKqzRpYFFaP81DFPgKCt8bx6oD7UyMmKcpZtyY0t8g/Cyh3RNRlZ0t3R75o+N 9VRg== X-Gm-Message-State: AGi0PuYFE6RlTgnVv3GEFyyQJM+TexMTo8W4KHZk5irV3f2qD9Czqofv RjerwcmYWRnRyBqWAgd/H1WEYO458Fs= X-Google-Smtp-Source: APiQypLxkD62buKLOdwxlKIrcSQrKkaqEktJecdECddPfFePENb+tAUERKYTR5pxy+3dDGAoXYBunQ== X-Received: by 2002:adf:e282:: with SMTP id v2mr4690887wri.329.1586526963628; Fri, 10 Apr 2020 06:56:03 -0700 (PDT) From: Rafael Fonseca To: libvir-list@redhat.com Subject: [PATCH 28/43] openvz: convert virMutex to GMutex Date: Fri, 10 Apr 2020 15:54:55 +0200 Message-Id: <20200410135510.2148319-29-r4f4rfs@gmail.com> In-Reply-To: <20200410135510.2148319-1-r4f4rfs@gmail.com> References: <20200410135510.2148319-1-r4f4rfs@gmail.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 03ADu7PU023222 X-loop: libvir-list@redhat.com Cc: Rafael Fonseca X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Rafael Fonseca --- src/openvz/openvz_conf.h | 2 +- src/openvz/openvz_driver.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openvz/openvz_conf.h b/src/openvz/openvz_conf.h index 9892f39481..1680227e95 100644 --- a/src/openvz/openvz_conf.h +++ b/src/openvz/openvz_conf.h @@ -37,7 +37,7 @@ #define VZCTL_BRIDGE_MIN_VERSION ((3 * 1000 * 1000) + (0 * 1000) + 22 + 1) =20 struct openvz_driver { - virMutex lock; + GMutex lock; =20 virCapsPtr caps; virDomainXMLOptionPtr xmlopt; diff --git a/src/openvz/openvz_driver.c b/src/openvz/openvz_driver.c index 1a189dbbe7..36a22a4e88 100644 --- a/src/openvz/openvz_driver.c +++ b/src/openvz/openvz_driver.c @@ -67,12 +67,12 @@ static int openvzGetVEStatus(virDomainObjPtr vm, int *s= tatus, int *reason); =20 static void openvzDriverLock(struct openvz_driver *driver) { - virMutexLock(&driver->lock); + g_mutex_lock(&driver->lock); } =20 static void openvzDriverUnlock(struct openvz_driver *driver) { - virMutexUnlock(&driver->lock); + g_mutex_unlock(&driver->lock); } =20 struct openvz_driver ovz_driver; --=20 2.25.2