From patchwork Fri Nov 29 14:58:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= X-Patchwork-Id: 295425 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id A3D762C00F8 for ; Sat, 30 Nov 2013 02:01:35 +1100 (EST) Received: from localhost ([::1]:47724 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmPZV-0007Ev-5R for incoming@patchwork.ozlabs.org; Fri, 29 Nov 2013 10:01:33 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55937) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmPXJ-0004PO-Ay for qemu-devel@nongnu.org; Fri, 29 Nov 2013 09:59:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VmPX8-0008Fa-Uk for qemu-devel@nongnu.org; Fri, 29 Nov 2013 09:59:17 -0500 Received: from mail-ie0-x236.google.com ([2607:f8b0:4001:c03::236]:47223) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmPX8-0008FU-Pq for qemu-devel@nongnu.org; Fri, 29 Nov 2013 09:59:06 -0500 Received: by mail-ie0-f182.google.com with SMTP id as1so16415327iec.27 for ; Fri, 29 Nov 2013 06:59:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=pwaiDbMEXu3tisJLgVJNqdAGrgM0483TJiwUumiNSI0=; b=MWJEh6wfYvSlpPzDMtaJRVr1pAGAnLn/dvbL7pUrr4Dp/oJGEkc5ZFWJY0PbkOYxN0 8jLSAvs7sdh3uv/+n7v+geZhJbeUySDZUZmsLfqnJf+a1hmjHV66ZhwBXCMpSYgI9+eO EYQb8tkEZBmqDPSMdaP7LY6Pjm12ahyrgYxOwgvfCc9cGIhRGYPKce/zN6Jbi9VDYT+p GzNVO7Z6jCYqOPrpOhMaNay7kpuCbAmI/eONmT4B+LWAhSETqPf1GCbmCZXj/fA/DhMc tqj1GIZLiKEj8aZ0u0AQ0gG6etidbnHKzUxrTwKy9l6PesUzsxsen6cJQ/IkPZYBjMtK NJ7A== X-Received: by 10.42.222.68 with SMTP id if4mr2017342icb.62.1385737146218; Fri, 29 Nov 2013 06:59:06 -0800 (PST) Received: from localhost (13.pool62-37-66.dynamic.orange.es. [62.37.66.13]) by mx.google.com with ESMTPSA id p5sm51283147igj.10.2013.11.29.06.59.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Nov 2013 06:59:05 -0800 (PST) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= To: qemu-devel@nongnu.org Date: Fri, 29 Nov 2013 15:58:32 +0100 Message-Id: <1385737124-13964-2-git-send-email-marcandre.lureau@gmail.com> X-Mailer: git-send-email 1.8.4.2 In-Reply-To: <1385737124-13964-1-git-send-email-marcandre.lureau@gmail.com> References: <1385737124-13964-1-git-send-email-marcandre.lureau@gmail.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::236 Cc: pbonzini@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , kraxel@redhat.com Subject: [Qemu-devel] [PATCH 01/13] coroutine: remove qemu_co_queue_wait_insert_head X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org qemu_co_queue_wait_insert_head() is unused in qemu code base now. Signed-off-by: Marc-André Lureau --- include/block/coroutine.h | 6 ------ qemu-coroutine-lock.c | 8 -------- 2 files changed, 14 deletions(-) diff --git a/include/block/coroutine.h b/include/block/coroutine.h index 4d5c0cf..b122c0c 100644 --- a/include/block/coroutine.h +++ b/include/block/coroutine.h @@ -121,12 +121,6 @@ void qemu_co_queue_init(CoQueue *queue); void coroutine_fn qemu_co_queue_wait(CoQueue *queue); /** - * Adds the current coroutine to the head of the CoQueue and transfers control to the - * caller of the coroutine. - */ -void coroutine_fn qemu_co_queue_wait_insert_head(CoQueue *queue); - -/** * Restarts the next coroutine in the CoQueue and removes it from the queue. * * Returns true if a coroutine was restarted, false if the queue is empty. diff --git a/qemu-coroutine-lock.c b/qemu-coroutine-lock.c index aeb33b9..e4860ae 100644 --- a/qemu-coroutine-lock.c +++ b/qemu-coroutine-lock.c @@ -41,14 +41,6 @@ void coroutine_fn qemu_co_queue_wait(CoQueue *queue) assert(qemu_in_coroutine()); } -void coroutine_fn qemu_co_queue_wait_insert_head(CoQueue *queue) -{ - Coroutine *self = qemu_coroutine_self(); - QTAILQ_INSERT_HEAD(&queue->entries, self, co_queue_next); - qemu_coroutine_yield(); - assert(qemu_in_coroutine()); -} - /** * qemu_co_queue_run_restart: *