Received: from eggs.gnu.org ([2001:4830:134:3::10]:57212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bom1n-0004FC-98 for qemu-devel@nongnu.org; Tue, 27 Sep 2016 02:38:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bom1m-0003YE-9H for qemu-devel@nongnu.org; Tue, 27 Sep 2016 02:38:07 -0400 From: Fam Zheng Date: Tue, 27 Sep 2016 14:37:51 +0800 Message-Id: <1474958276-7715-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/5] block: keep AioContext pointer in BlockBackend List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, Kevin Wolf , qemu-stable@nongnu.org, Max Reitz , stefanha@redhat.com, pbonzini@redhat.com The first patches clean up usage of BlockBackend and changing of its (root's) aio contexts; the last patch is an update of Stefan's previous version rebasing on top of current master. The biggest change from the RFC is that blk_insert_bs callers are responsible to put the BB and BDS on the same context before calling it. This fixes the crash triggered by "change" a scsi-cd on a virtio-scsi dataplane device. The new assertions in block-backend.c ensures we won't have a conflict pair of BlockBackend users from different contextes. Fam Zheng (4): blockdev-mirror: Sanity check before moving target_bs AioContext blockdev: Move BDS AioContext before inserting to BB block: Introduce and make use of blk_new_with_root migration: Set correct AioContext to BlockBackend Stefan Hajnoczi (1): block: keep AioContext pointer in BlockBackend block/backup.c | 3 +-- block/block-backend.c | 48 +++++++++++++++++++++++++++++----------- block/commit.c | 12 ++++------ block/mirror.c | 3 +-- blockdev.c | 42 ++++++++++++++++++++++++++--------- blockjob.c | 3 +-- hmp.c | 3 +-- hw/core/qdev-properties-system.c | 3 +-- include/sysemu/block-backend.h | 1 + migration/block.c | 1 + nbd/server.c | 3 +-- tests/test-blockjob.c | 3 +-- 12 files changed, 79 insertions(+), 46 deletions(-) -- 2.7.4