Received: from eggs.gnu.org ([2001:4830:134:3::10]:54165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zgsv8-0005D1-0d for qemu-devel@nongnu.org; Tue, 29 Sep 2015 07:18:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zgsv7-0001aW-2y for qemu-devel@nongnu.org; Tue, 29 Sep 2015 07:18:05 -0400 From: Alberto Garcia In-Reply-To: <56016CF5.8030709@redhat.com> References: <1442589793-7105-1-git-send-email-mreitz@redhat.com> <1442589793-7105-18-git-send-email-mreitz@redhat.com> <20150922141701.GD3999@noname.str.redhat.com> <56016CF5.8030709@redhat.com> Date: Tue, 29 Sep 2015 13:17:53 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH v5 17/38] block: Add BlockBackendRootState List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , Kevin Wolf Cc: qemu-block@nongnu.org, qemu-devel@nongnu.org, Markus Armbruster , Stefan Hajnoczi , John Snow On Tue 22 Sep 2015 05:00:05 PM CEST, Max Reitz wrote: >> The correct way to solve this seems to be that each BB has its own >> I/O throttling filter. Actually, if we could lift the throttling code >> to BlockBackend, that might solve the problem. > > So yes, as long as we have throttling on the BDS level, something may > always break when having multiple BBs per BDS, because you'd probably > want throttling to be on the BB level. But lifting that doesn't seem a > trivial task, and I don't really know whether I want this in this > series. > > Especially considering that right now you cannot have multiple BBs per > BDS. > > All in all: Yes, before we allow multiple BBs per BDS we want > throttling to be on the BB level. But this is nothing that should be > done in or for this series, since right now we do not allow multiple > BBs per BDS. I agree that it makes sense to move throttling to the BB level. It's probably not trivial but I don't think it's too complex either. I can give it a look once this series has been merged. Berto