From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:58717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gj3Pu-0005JG-OE for qemu-devel@nongnu.org; Mon, 14 Jan 2019 09:40:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gj3Pu-0001XE-2x for qemu-devel@nongnu.org; Mon, 14 Jan 2019 09:40:42 -0500 From: Alberto Garcia In-Reply-To: <20190114133553.GE7038@stefanha-x1.localdomain> References: <20190109110144.18633-1-stefanha@redhat.com> <20190111132416.GI5010@dhcp-200-186.str.redhat.com> <20190114133553.GE7038@stefanha-x1.localdomain> Date: Mon, 14 Jan 2019 15:40:39 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] throttle-groups: fix restart coroutine iothread race List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Kevin Wolf , qemu-devel@nongnu.org, Paolo Bonzini , qemu-block@nongnu.org, Max Reitz On Mon 14 Jan 2019 02:35:53 PM CET, Stefan Hajnoczi wrote: > On Fri, Jan 11, 2019 at 03:14:08PM +0100, Alberto Garcia wrote: >> On Fri 11 Jan 2019 02:24:16 PM CET, Kevin Wolf wrote: >> >> >> The following QMP command leads to a crash when iothreads are used: >> >> >> >> >> >> { 'execute': 'device_del', 'arguments': {'id': 'data'} } >> >> > >> >> > How did you reproduce this? Do you have a test case? >> >> >> >> Ok, I finally reproduced it, the patch looks good to me. >> > >> > Can it be turned into a qemu-iotests case or is it too complicated for >> > that? >> >> I can reproduce the problem reliably with this: >> >> { "execute": "qmp_capabilities" } >> { "execute": "blockdev-add", >> "arguments": {"driver": "null-co", "node-name": "hd0"}} >> { "execute": "object-add", >> "arguments": {"qom-type": "iothread", "id": "iothread0"}} >> { "execute": "device_add", >> "arguments": {"id": "scsi0", "driver": "virtio-scsi-pci", >> "iothread": "iothread0"}} >> { "execute": "device_add", >> "arguments": {"id": "scsi-hd0", "driver": "scsi-hd", "drive": "hd0"}} >> { "execute": "block_set_io_throttle", >> "arguments": {"id": "scsi-hd0", "bps": 0, "bps_rd": 0, "bps_wr": 0, >> "iops": 1000, "iops_rd": 0, "iops_wr": 0}} >> { "execute": "device_del", "arguments": {"id": "scsi-hd0"}} >> >> But this doesn't crash if I put it in an iotest. > > I've been able to reproduce this in an iotest, please see v2 of this > series. That iotest doesn't crash for me :-? Berto