From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNfmD-0000qv-E2 for qemu-devel@nongnu.org; Thu, 14 Jul 2016 08:30:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNfm9-0002k5-6l for qemu-devel@nongnu.org; Thu, 14 Jul 2016 08:30:00 -0400 Received: from mailhub.sw.ru ([195.214.232.25]:47248 helo=relay.sw.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNfm8-0002iw-Qa for qemu-devel@nongnu.org; Thu, 14 Jul 2016 08:29:57 -0400 From: "Denis V. Lunev" Date: Thu, 14 Jul 2016 15:29:37 +0300 Message-Id: <1468499383-17840-1-git-send-email-den@openvz.org> Subject: [Qemu-devel] [PATCH v6 0/6] 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 v6: - Removed failed flush traces in block tests 026 071 089 - Changed BLOCK_JOB_READY event order in block tests 141 144 Changes from v4: - Moved to write generation scheme instead of dirty flag - Added retry setup to IDE PIO and FLUSH requests Changes from v3: - Fixed a typo in commit message - Rebased on Kevin'n origin/block 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 (6): ide: refactor retry_unit set and clear into separate function ide: set retry_unit for PIO and FLUSH requests tests: in IDE and AHCI tests perform DMA write before flushing block: ignore flush requests when storage is clean tests: removed skipped flushes from block test traces tests: changed block job ready event generation order block.c | 3 +++ block/io.c | 21 ++++++++++++++++ hw/ide/core.c | 24 +++++++++++++----- include/block/block_int.h | 5 ++++ tests/ahci-test.c | 34 ++++++++++++++++++++++++-- tests/ide-test.c | 43 ++++++++++++++++++++++++++++++++ tests/qemu-iotests/026.out.nocache | 50 -------------------------------------- tests/qemu-iotests/071.out | 8 ------ tests/qemu-iotests/089.out | 2 -- tests/qemu-iotests/141.out | 4 +-- tests/qemu-iotests/144.out | 2 +- 11 files changed, 125 insertions(+), 71 deletions(-) -- 2.1.4