From patchwork Thu May 31 20:50:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Blake X-Patchwork-Id: 923594 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40xfmk6dP6z9s47 for ; Fri, 1 Jun 2018 06:52:54 +1000 (AEST) Received: from localhost ([::1]:46095 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fOUZ2-00043j-G1 for incoming@patchwork.ozlabs.org; Thu, 31 May 2018 16:52:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fOUXK-0003NK-Df for qemu-devel@nongnu.org; Thu, 31 May 2018 16:51:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fOUXJ-0001cV-GL for qemu-devel@nongnu.org; Thu, 31 May 2018 16:51:06 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:37640 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fOUXC-0001T6-9s; Thu, 31 May 2018 16:50:58 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9007F40073A4; Thu, 31 May 2018 20:50:57 +0000 (UTC) Received: from red.redhat.com (ovpn-125-63.rdu2.redhat.com [10.10.125.63]) by smtp.corp.redhat.com (Postfix) with ESMTP id 23D90111CA1D; Thu, 31 May 2018 20:50:54 +0000 (UTC) From: Eric Blake To: qemu-devel@nongnu.org Date: Thu, 31 May 2018 15:50:38 -0500 Message-Id: <20180531205046.153256-1-eblake@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Thu, 31 May 2018 20:50:57 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Thu, 31 May 2018 20:50:57 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'eblake@redhat.com' RCPT:'' X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.187.233.73 Subject: [Qemu-devel] [PATCH v2 0/8] block: more byte-based cleanups: vectored I/O 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, den@openvz.com, qemu-block@nongnu.org, wencongyang2@huawei.com, xiechanglong.d@gmail.com, mreitz@redhat.com, stefanha@redhat.com, jcody@redhat.com Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" My quest continues. I spent some time pruning sector-based usage out of qcow as far as possible (and was dismayed at how long it took to prove no iotests regressions); so for the other drivers, I did the bare minimum to get rid of an interface, but will leave it to those file owners if they want to get rid of further pointless sector manipulations in their files. In v2: - throughout: add collected R-b tags - patch 2: add assert [Kevin] - patch 3-4: improve readability [Kevin] - patch 8: retitle to fix typo [Kashyap] 001/8:[----] [--] 'parallels: Switch to byte-based calls' 002/8:[0005] [FC] 'qcow: Switch get_cluster_offset to be byte-based' 003/8:[0017] [FC] 'qcow: Switch qcow_co_readv to byte-based calls' 004/8:[0016] [FC] 'qcow: Switch qcow_co_writev to byte-based calls' 005/8:[0008] [FC] 'qcow: Switch to a byte-based driver' 006/8:[----] [--] 'replication: Switch to byte-based calls' 007/8:[----] [--] 'vhdx: Switch to byte-based calls' 008/8:[down] 'block: Remove unused sector-based vectored I/O' Eric Blake (8): parallels: Switch to byte-based calls qcow: Switch get_cluster_offset to be byte-based qcow: Switch qcow_co_readv to byte-based calls qcow: Switch qcow_co_writev to byte-based calls qcow: Switch to a byte-based driver replication: Switch to byte-based calls vhdx: Switch to byte-based calls block: Remove unused sector-based vectored I/O include/block/block.h | 4 -- block/io.c | 36 -------------- block/parallels.c | 16 ++++--- block/qcow.c | 130 +++++++++++++++++++++++++------------------------- block/replication.c | 14 +++--- block/vhdx.c | 12 ++--- 6 files changed, 90 insertions(+), 122 deletions(-)