|
|
9ae3a8 |
From 56d3fe342a9c8c8e832e59fc093515e99aa8f677 Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
From: "Daniel P. Berrange" <berrange@redhat.com>
|
|
|
9ae3a8 |
Date: Thu, 8 Feb 2018 17:50:21 +0100
|
|
|
9ae3a8 |
Subject: [PATCH 07/27] vnc: kill jobs queue buffer
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
RH-Author: Daniel P. Berrange <berrange@redhat.com>
|
|
|
9ae3a8 |
Message-id: <20180208175041.5634-8-berrange@redhat.com>
|
|
|
9ae3a8 |
Patchwork-id: 78939
|
|
|
9ae3a8 |
O-Subject: [RHEL-7.5 qemu-kvm PATCH v1 07/27] vnc: kill jobs queue buffer
|
|
|
9ae3a8 |
Bugzilla: 1527405
|
|
|
9ae3a8 |
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
From: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
RHEL-7 note: the vnc_queue_init() hunk is missing from the downstream
|
|
|
9ae3a8 |
patch because the buffer_init() call that the hunk removes only appeared
|
|
|
9ae3a8 |
with upstream commit 543b95801f98 ("vnc: attach names to buffers",
|
|
|
9ae3a8 |
2015-11-05), as part of v2.5.0.
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
9ae3a8 |
Reviewed-by: Peter Lieven <pl@kamp.de>
|
|
|
9ae3a8 |
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
|
|
|
9ae3a8 |
Message-id: 1446203414-4013-9-git-send-email-kraxel@redhat.com
|
|
|
9ae3a8 |
(cherry picked from commit 8305f917c1bc86b1ead0fa9197b5443a4bd611f3)
|
|
|
9ae3a8 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
ui/vnc-jobs.c | 5 -----
|
|
|
9ae3a8 |
1 file changed, 5 deletions(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
diff --git a/ui/vnc-jobs.c b/ui/vnc-jobs.c
|
|
|
9ae3a8 |
index a141f40..a6dfdf6 100644
|
|
|
9ae3a8 |
--- a/ui/vnc-jobs.c
|
|
|
9ae3a8 |
+++ b/ui/vnc-jobs.c
|
|
|
9ae3a8 |
@@ -53,7 +53,6 @@ struct VncJobQueue {
|
|
|
9ae3a8 |
QemuCond cond;
|
|
|
9ae3a8 |
QemuMutex mutex;
|
|
|
9ae3a8 |
QemuThread thread;
|
|
|
9ae3a8 |
- Buffer buffer;
|
|
|
9ae3a8 |
bool exit;
|
|
|
9ae3a8 |
QTAILQ_HEAD(, VncJob) jobs;
|
|
|
9ae3a8 |
};
|
|
|
9ae3a8 |
@@ -192,7 +191,6 @@ static void vnc_async_encoding_start(VncState *orig, VncState *local)
|
|
|
9ae3a8 |
local->zlib = orig->zlib;
|
|
|
9ae3a8 |
local->hextile = orig->hextile;
|
|
|
9ae3a8 |
local->zrle = orig->zrle;
|
|
|
9ae3a8 |
- local->output = queue->buffer;
|
|
|
9ae3a8 |
local->csock = -1; /* Don't do any network work on this thread */
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
buffer_reset(&local->output);
|
|
|
9ae3a8 |
@@ -205,8 +203,6 @@ static void vnc_async_encoding_end(VncState *orig, VncState *local)
|
|
|
9ae3a8 |
orig->hextile = local->hextile;
|
|
|
9ae3a8 |
orig->zrle = local->zrle;
|
|
|
9ae3a8 |
orig->lossy_rect = local->lossy_rect;
|
|
|
9ae3a8 |
-
|
|
|
9ae3a8 |
- queue->buffer = local->output;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
static int vnc_worker_thread_loop(VncJobQueue *queue)
|
|
|
9ae3a8 |
@@ -309,7 +305,6 @@ static void vnc_queue_clear(VncJobQueue *q)
|
|
|
9ae3a8 |
{
|
|
|
9ae3a8 |
qemu_cond_destroy(&queue->cond);
|
|
|
9ae3a8 |
qemu_mutex_destroy(&queue->mutex);
|
|
|
9ae3a8 |
- buffer_free(&queue->buffer);
|
|
|
9ae3a8 |
g_free(q);
|
|
|
9ae3a8 |
queue = NULL; /* Unset global queue */
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.8.3.1
|
|
|
9ae3a8 |
|