From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35372) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0K9k-0008J7-Io for qemu-devel@nongnu.org; Tue, 10 May 2016 22:45:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0K9i-0005M9-Af for qemu-devel@nongnu.org; Tue, 10 May 2016 22:45:47 -0400 From: Fam Zheng Date: Wed, 11 May 2016 10:45:32 +0800 Message-Id: <1462934735-12047-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/3] block: More complete inactivate/invalidate of graph nodes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Max Reitz , Stefan Hajnoczi , Alberto Garcia , qemu-block@nongnu.org v2: Two passes inactivation. [Kevin] For now we only consider bs->file chain. In fact this is incomplete. For example, if qcow2 is a quorum child, we don't properly invalidate or inactivate it. This series recurses into the subtrees in both bdrv_invalidate_cache_all and bdrv_inactivate_all. This is also necessary to make the image locking cooperate with migration. Fam Zheng (3): block: Invalidate all children block: Drop superfluous invalidating bs->file from drivers block: Inactivate all children block.c | 67 +++++++++++++++++++++++++++++++++++++++++++--------------- block/qcow2.c | 7 ------ block/qed.c | 6 ------ block/quorum.c | 16 -------------- 4 files changed, 50 insertions(+), 46 deletions(-) -- 2.8.2