Received: from eggs.gnu.org ([2001:4830:134:3::10]:36183) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alFBH-00061x-GY for qemu-devel@nongnu.org; Wed, 30 Mar 2016 08:25:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1alFBD-0001qk-GK for qemu-devel@nongnu.org; Wed, 30 Mar 2016 08:25:03 -0400 From: Alberto Garcia In-Reply-To: <1458837566-108527-5-git-send-email-pbonzini@redhat.com> References: <1458837566-108527-1-git-send-email-pbonzini@redhat.com> <1458837566-108527-5-git-send-email-pbonzini@redhat.com> Date: Wed, 30 Mar 2016 14:24:55 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [Qemu-block] [PATCH 4/7] block: introduce bdrv_no_throttling_begin/end List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org Cc: kwolf@redhat.com, famz@redhat.com, qemu-block@nongnu.org, stefanha@redhat.com On Thu 24 Mar 2016 05:39:23 PM CET, Paolo Bonzini wrote: > Extract the handling of throttling from bdrv_flush_io_queue. These > new functions will soon become BdrvChildRole callbacks, as they can > be generalized to "beginning of drain" and "end of drain". > > Signed-off-by: Paolo Bonzini I like the idea, thanks for the patch! Reviewed-by: Alberto Garcia > +void bdrv_no_throttling_end(BlockDriverState *bs) > +{ > + --bs->io_limits_disabled; > } Not very important, but you could assert that this doesn't go below 0. Berto