From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:51990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfuAk-0000WM-BO for qemu-devel@nongnu.org; Tue, 04 Dec 2012 10:12:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TfuAa-0002qc-Ku for qemu-devel@nongnu.org; Tue, 04 Dec 2012 10:12:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42962) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfuAa-0002qX-DC for qemu-devel@nongnu.org; Tue, 04 Dec 2012 10:12:24 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qB4FCNZs005337 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 4 Dec 2012 10:12:23 -0500 From: Stefan Hajnoczi Date: Tue, 4 Dec 2012 16:12:17 +0100 Message-Id: <1354633939-29940-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] tests: avoid aio_flush() in test cases List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Paolo Bonzini , Stefan Hajnoczi There is a patch to drop aio_flush(). Most callers shouldn't use that interface. It turns out that the aio and thread pool test cases *do* need low-level flush functionality so they can test the aio code. Convert test-aio.c and test-thread-pool.c to use replacements for qemu_aio_flush() and aio_flush(). Stefan Hajnoczi (2): tests: use aio_poll() instead of aio_flush() in test-aio.c tests: avoid qemu_aio_flush() in test-thread-pool.c tests/test-aio.c | 31 +++++++++++++++---------------- tests/test-thread-pool.c | 20 ++++++++++++++------ 2 files changed, 29 insertions(+), 22 deletions(-) -- 1.8.0.1