Received: from eggs.gnu.org ([2001:4830:134:3::10]:37933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFLbB-0008Uu-SN for qemu-devel@nongnu.org; Mon, 29 May 2017 10:24:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFLb6-0003sG-T2 for qemu-devel@nongnu.org; Mon, 29 May 2017 10:24:45 -0400 From: Alberto Garcia In-Reply-To: <20170525163225.29954-10-pbonzini@redhat.com> References: <20170525163225.29954-1-pbonzini@redhat.com> <20170525163225.29954-10-pbonzini@redhat.com> Date: Mon, 29 May 2017 16:24:37 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [Qemu-block] [PATCH 09/18] throttle-groups: protect throttled requests with a CoMutex List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org Cc: famz@redhat.com, stefanha@redhat.com, qemu-block@nongnu.org On Thu 25 May 2017 06:32:16 PM CEST, Paolo Bonzini wrote: > Another possibility is to use tg->lock, which we're holding anyway in > both schedule_next_request and throttle_group_co_io_limits_intercept. > This would require open-coding the CoQueue however, so I've chosen this > alternative. > > Reviewed-by: Stefan Hajnoczi > Signed-off-by: Paolo Bonzini Reviewed-by: Alberto Garcia Berto