Received: from eggs.gnu.org ([2001:4830:134:3::10]:39121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJiIj-00074z-4L for qemu-devel@nongnu.org; Tue, 28 Nov 2017 11:00:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJiIi-0004Wo-GE for qemu-devel@nongnu.org; Tue, 28 Nov 2017 11:00:01 -0500 Date: Tue, 28 Nov 2017 16:59:51 +0100 From: Kevin Wolf Message-ID: <20171128155951.GD3703@localhost.localdomain> References: <20171128145327.17248-1-berto@igalia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH for-2.11] blockjob: Remove the job from the list earlier in block_job_unref() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alberto Garcia Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, Max Reitz , Jeff Cody Am 28.11.2017 um 16:53 hat Alberto Garcia geschrieben: > On Tue 28 Nov 2017 03:53:27 PM CET, Alberto Garcia wrote: > > When destroying a block job in block_job_unref() we should remove it > > from the job list before calling block_job_remove_all_bdrv(). > > > > This is because removing the BDSs can trigger an aio_poll() and wake > > up other jobs that might attempt to use the block job list. If that > > happens the job we're currently destroying should not be in that list > > anymore. > > --- > > blockjob.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > I forgot this > > Signed-off-by: Alberto Garcia Thanks, applied to the block branch. Kevin