Received: from eggs.gnu.org ([2001:4830:134:3::10]:50604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fksOI-0007pR-VU for qemu-devel@nongnu.org; Wed, 01 Aug 2018 10:46:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fksOF-0007WT-0K for qemu-devel@nongnu.org; Wed, 01 Aug 2018 10:46:19 -0400 From: Alberto Garcia In-Reply-To: References: <20180704145410.794-1-stefanha@redhat.com> Date: Wed, 01 Aug 2018 16:45:36 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] throttle-groups: fix hang when group member leaves List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi , qemu-devel@nongnu.org Cc: Kevin Wolf , qemu-block@nongnu.org, Max Reitz On Tue 31 Jul 2018 06:47:53 PM CEST, Alberto Garcia wrote: > On Wed 04 Jul 2018 04:54:10 PM CEST, Stefan Hajnoczi wrote: >> Throttle groups consist of members sharing one throttling state >> (including bps/iops limits). Round-robin scheduling is used to ensure >> fairness. If a group member already has a timer pending then other >> groups members do not schedule their own timers. The next group >> member will have its turn when the existing timer expires. >> >> A hang may occur when a group member leaves while it had a timer >> scheduled. > > Ok, I can reproduce this if I run fio with iodepth=1. I managed to write a test case for this, but unfortunately it seems that this patch is not enough and it's still possible to hang QEMU 3.0.0-rc2. I expect to have a fix for tomorrow. Berto