Received: from eggs.gnu.org ([2001:4830:134:3::10]:46511) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atUgL-0001pC-35 for qemu-devel@nongnu.org; Fri, 22 Apr 2016 02:35:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1atUgK-0000VT-7s for qemu-devel@nongnu.org; Fri, 22 Apr 2016 02:35:13 -0400 From: Fam Zheng Date: Fri, 22 Apr 2016 14:35:04 +0800 Message-Id: <1461306907-2837-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH for-2.6 0/3] block: Fix assertion failure at mirror exit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Jeff Cody , Kevin Wolf , Max Reitz , qemu-block@nongnu.org, pbonzini@redhat.com, stefanha@redhat.com This supersedes the "virtio: Register host notifier handler as external" patch from yesterday. The bug was initially reported by Matthew Schumacher as LaunchPad Bug 1570134, and nicely bisected by Max Reitz. See patch 2 for the analysis. We are late for 2.6 so the fix is done locally in mirror.c. In 2.7 we should revisit this and let bdrv_drained_begin do the work. Fam Zheng (3): mirror: Extract mirror_replace mirror: Skip BH for mirror_exit if in main loop block: Update comment of bdrv_drained_begin block/mirror.c | 43 ++++++++++++++++++++++++++++++------------- include/block/block.h | 5 +++++ 2 files changed, 35 insertions(+), 13 deletions(-) -- 2.8.0