From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdFXv-0007XU-Su for qemu-devel@nongnu.org; Wed, 01 Apr 2015 06:06:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdFXr-0003MP-Jm for qemu-devel@nongnu.org; Wed, 01 Apr 2015 06:06:51 -0400 Received: from smtp3.mundo-r.com ([212.51.32.191]:56728 helo=smtp4.mundo-r.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdFXr-00037Y-D3 for qemu-devel@nongnu.org; Wed, 01 Apr 2015 06:06:47 -0400 Date: Wed, 1 Apr 2015 12:06:08 +0200 From: Alberto Garcia Message-ID: <20150401100608.GA13383@igalia.com> References: <3e2f5bedd4889507e5083faf431250a814205db9.1427732020.git.berto@igalia.com> <20150401095940.GB2777@fam-t430.nay.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150401095940.GB2777@fam-t430.nay.redhat.com> Subject: Re: [Qemu-devel] [PATCH 6/7] throttle: add the name of the ThrottleGroup to BlockDeviceInfo List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: Kevin Wolf , qemu-devel@nongnu.org, Stefan Hajnoczi On Wed, Apr 01, 2015 at 05:59:40PM +0800, Fam Zheng wrote: > > info->has_iops_size = cfg.op_size; > > info->iops_size = cfg.op_size; > > + > > + info->has_group = true; > > + info->group = g_strdup(throttle_group_get_name(bs)); > > True even if it's unset? Note that that's inside an "if (bs->io_limits_enabled)" block. io_limits_enabled is set immediately after adding a BDS to a throttling group, and that requires a name. > > +# @group: #optional throttle group name (Since 2.3) > > Will probably be 2.4. Right. Berto