From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGShJ-0002jr-Ho for qemu-devel@nongnu.org; Fri, 24 Jun 2016 11:07:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGSh9-0001HY-HD for qemu-devel@nongnu.org; Fri, 24 Jun 2016 11:07:08 -0400 Received: from mailhub.sw.ru ([195.214.232.25]:14314 helo=relay.sw.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGSh9-0001EL-2T for qemu-devel@nongnu.org; Fri, 24 Jun 2016 11:06:59 -0400 From: "Denis V. Lunev" Date: Fri, 24 Jun 2016 18:06:39 +0300 Message-Id: <1466780802-30424-1-git-send-email-den@openvz.org> Subject: [Qemu-devel] [PATCH 0/3] block: ignore flush requests when storage is clean List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-block@nongnu.org, qemu-devel@nongnu.org Cc: den@openvz.org, Evgeny Yakovlev , Kevin Wolf , Max Reitz , Stefan Hajnoczi , Fam Zheng , John Snow Changes from v2: - Better comments - Rebased on latest master Changes from v1: - Flush requests that should be skipped will now wait for completion of any previous requests already in flight - Fixed IDE and AHCI tests to dirty media for new flush behaviour - Fixed a problem in IDE CMD_FLUSH_CACHE failure handling Signed-off-by: Evgeny Yakovlev Signed-off-by: Denis V. Lunev CC: Kevin Wolf CC: Max Reitz CC: Stefan Hajnoczi CC: Fam Zheng CC: John Snow Evgeny Yakovlev (3): block: ignore flush requests when storage is clean ide: ignore retry_unit check for non-retry operations tests: in IDE and AHCI tests perform DMA write before flushing block.c | 1 + block/dirty-bitmap.c | 3 +++ block/io.c | 19 +++++++++++++++++++ hw/ide/core.c | 3 ++- include/block/block_int.h | 2 ++ tests/ahci-test.c | 34 ++++++++++++++++++++++++++++++++-- tests/ide-test.c | 43 +++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 102 insertions(+), 3 deletions(-) -- 2.1.4