From patchwork Wed Oct 31 21:56:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Wolf X-Patchwork-Id: 10663277 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 89F1D13B5 for ; Wed, 31 Oct 2018 21:58:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7CDFE2B951 for ; Wed, 31 Oct 2018 21:58:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 709BA2B966; Wed, 31 Oct 2018 21:58:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 255A32B951 for ; Wed, 31 Oct 2018 21:58:42 +0000 (UTC) Received: from localhost ([::1]:33675 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHyVd-0007EE-Cs for patchwork-qemu-devel@patchwork.kernel.org; Wed, 31 Oct 2018 17:58:41 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHyTz-0004fe-74 for qemu-devel@nongnu.org; Wed, 31 Oct 2018 17:57:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHyTu-0008Hk-0f for qemu-devel@nongnu.org; Wed, 31 Oct 2018 17:56:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35228) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gHyTh-00083t-SW; Wed, 31 Oct 2018 17:56:42 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 434CC87628; Wed, 31 Oct 2018 21:56:26 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-116-240.ams2.redhat.com [10.36.116.240]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4E0B919744; Wed, 31 Oct 2018 21:56:25 +0000 (UTC) From: Kevin Wolf To: qemu-block@nongnu.org Date: Wed, 31 Oct 2018 22:56:10 +0100 Message-Id: <20181031215622.27690-1-kwolf@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Wed, 31 Oct 2018 21:56:26 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 00/12] file-posix: Simplify delegation to worker thread X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP This series cleans up and simplifies the code that calls worker thread functions for the various operations in the file-posix driver. This results in less indirection and better readability as well as reduced heap allocations because we can store ACBs on the coroutine stack now. Kevin Wolf (12): file-posix: Reorganise RawPosixAIOData file-posix: Factor out raw_thread_pool_submit() file-posix: Avoid aio_worker() for QEMU_AIO_TRUNCATE file-posix: Avoid aio_worker() for QEMU_AIO_COPY_RANGE file-posix: Avoid aio_worker() for QEMU_AIO_WRITE_ZEROES file-posix: Avoid aio_worker() for QEMU_AIO_DISCARD file-posix: Avoid aio_worker() for QEMU_AIO_FLUSH file-posix: Move read/write operation logic out of aio_worker() file-posix: Avoid aio_worker() for QEMU_AIO_READ/WRITE file-posix: Remove paio_submit_co() file-posix: Switch to .bdrv_co_ioctl file-posix: Avoid aio_worker() for QEMU_AIO_IOCTL include/scsi/pr-manager.h | 8 +- block/file-posix.c | 380 ++++++++++++++++++++------------------ scsi/pr-manager.c | 21 +-- scsi/trace-events | 2 +- 4 files changed, 210 insertions(+), 201 deletions(-)