From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49530) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUrnS-00078S-DV for qemu-devel@nongnu.org; Tue, 11 Jul 2017 05:49:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUrnR-00062F-Mb for qemu-devel@nongnu.org; Tue, 11 Jul 2017 05:49:34 -0400 Date: Tue, 11 Jul 2017 11:49:19 +0200 From: Kevin Wolf Message-ID: <20170711094919.GH4335@noname.str.redhat.com> References: <20170705102231.20711-1-stefanha@redhat.com> <20170705102231.20711-3-stefanha@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20170705102231.20711-3-stefanha@redhat.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 2/2] qcow2: make qcow2_co_create2() a coroutine_fn List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: qemu-devel@nongnu.org, =?iso-8859-1?Q?Marc-Andr=E9?= Lureau , qemu-block@nongnu.org Am 05.07.2017 um 12:22 hat Stefan Hajnoczi geschrieben: > qcow2_create2() calls qemu_co_mutex_lock(). Only a coroutine_fn may > call another coroutine_fn. >=20 > Rename the function (the block layer API is now called > .bdrv_co_create()) and add coroutine_fn. It is always called from > coroutine context. >=20 > Reported-by: Marc-Andr=E9 Lureau > Signed-off-by: Stefan Hajnoczi Reviewed-by: Kevin Wolf