Received: from eggs.gnu.org ([2001:4830:134:3::10]:39251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuNHk-0003fI-Mo for qemu-devel@nongnu.org; Mon, 18 May 2015 11:49:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YuNHj-0006ov-QT for qemu-devel@nongnu.org; Mon, 18 May 2015 11:48:56 -0400 Date: Mon, 18 May 2015 16:48:46 +0100 From: Stefan Hajnoczi Message-ID: <20150518154846.GC27654@stefanha-thinkpad.redhat.com> References: <1431385466-4868-1-git-send-email-jsnow@redhat.com> <1431385466-4868-10-git-send-email-jsnow@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/e2eDi0V/xtL+Mc8" Content-Disposition: inline In-Reply-To: <1431385466-4868-10-git-send-email-jsnow@redhat.com> Subject: Re: [Qemu-devel] [PATCH v4 09/11] block: drive_backup transaction callback support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: John Snow Cc: kwolf@redhat.com, famz@redhat.com, qemu-block@nongnu.org, qemu-devel@nongnu.org, mreitz@redhat.com, vsementsov@parallels.com --/e2eDi0V/xtL+Mc8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 11, 2015 at 07:04:24PM -0400, John Snow wrote: > @@ -1825,6 +1827,19 @@ static void drive_backup_prepare(BlkActionState *c= ommon, Error **errp) > } > bs =3D blk_bs(blk); > =20 > + /* BackupBlockJob is opaque to us, so look up the bitmap ourselves */ > + if (backup->has_bitmap) { > + bmap =3D bdrv_find_dirty_bitmap(bs, backup->bitmap); This usage of bs needs to be inside aio_context_acquire(). --/e2eDi0V/xtL+Mc8 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVWgneAAoJEJykq7OBq3PI3UUIAInL3XTlDr2qqTFOu8uTlhRN 8jqY8LkVnGgjaE9xt/YLi32lAb2yjIAjVM+6sMNSyHJrM2CEvylOjaRQlm0ZLsjn trr08DhGxD6EjpQLmklaNdGdg6skgLbxDHdNPqrGtH0EfZ2b3yQ0H607o7DruHDY rqnM25Dijc/LBco/WKmR3Sq8eEHGJK9LEdpaVw3dDBkAIljnppykBqYyzP/WLl2u y2mfIPk+qUY1wW11AkMtAVlXRmp1SmJrXOprGbSRhpk2SywaDaDPHcRAjxpYUICu Q6I00HN/8fJZ/G+dGY6SVIDxlgmnCMdk/GOp1AeEW4ZfrA2JGcbMBGQKkb8v99k= =Qn8F -----END PGP SIGNATURE----- --/e2eDi0V/xtL+Mc8--