Received: from eggs.gnu.org ([2001:4830:134:3::10]:39461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X442u-0007uO-Bh for qemu-devel@nongnu.org; Mon, 07 Jul 2014 04:13:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X442m-0007eT-Tl for qemu-devel@nongnu.org; Mon, 07 Jul 2014 04:13:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:2240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X442m-0007eE-HY for qemu-devel@nongnu.org; Mon, 07 Jul 2014 04:13:00 -0400 Date: Mon, 7 Jul 2014 10:12:56 +0200 From: Stefan Hajnoczi Message-ID: <20140707081256.GB21110@stefanha-thinkpad.redhat.com> References: <1404464167-5188-1-git-send-email-stefanha@redhat.com> <1404464167-5188-3-git-send-email-stefanha@redhat.com> <87wqbtpg0y.fsf@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3uo+9/B/ebqu+fSQ" Content-Disposition: inline In-Reply-To: <87wqbtpg0y.fsf@fimbulvetr.bsc.es> Subject: Re: [Qemu-devel] [PATCH v2 2/2] block: bump coroutine pool size for drives List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Kevin Wolf , Paolo Bonzini , ming.lei@canonical.com --3uo+9/B/ebqu+fSQ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 04, 2014 at 12:36:13PM +0200, Llu=EDs Vilanova wrote: > Stefan Hajnoczi writes: > > @@ -2093,6 +2093,9 @@ int bdrv_attach_dev(BlockDriverState *bs, void *d= ev) > > } > bs-> dev =3D dev; > > bdrv_iostatus_reset(bs); > > + > > + /* We're expecting I/O from the device so bump up coroutine pool s= ize */ > > + qemu_coroutine_adjust_pool_size(64); > > return 0; > > } > =20 > > @@ -2112,6 +2115,7 @@ void bdrv_detach_dev(BlockDriverState *bs, void *= dev) > bs-> dev_ops =3D NULL; > bs-> dev_opaque =3D NULL; > bs-> guest_block_size =3D 512; > > + qemu_coroutine_adjust_pool_size(-64); > > } > =20 > > /* TODO change to return DeviceState * when all users are qdevified */ >=20 > Small nitpick. Wouldn't it be better to refactor that constant to a defin= e/enum > (like in POOL_DEFAULT_SIZE)? You are right. Stefan --3uo+9/B/ebqu+fSQ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJTulaIAAoJEJykq7OBq3PI0agH/jL1V1TsvRtshHk+2wZ6xVre 5NgOv76tqQ/OBno3VYuoK40ZwanwMHqgzmAlUNiaIDU5gi8K+sOR0zY9Efhk1ytm ja/nN1D4K4gSMGUxId/Aevo/P+PUah0oTOI4fugIQlkmG/oIIT2aWW8cJSPfKn/c hjzryYfymJK7GNDGdnBMpNO/n14ELOlN8VDkdjzPJIGGZHJHrfmOhtqeIG2kqSQq btUBD8Bav8AVdlHKP31NkwunwyP6OQWSbS1eISPOOhiA7LxpUAtz/6SICVCw3ppg +WLdEet34zhmtYpCyKBMQmq7dhP/VpVDRuTAGNaL5IfQDvuE0ahuCcGUwMjcbyM= =bByc -----END PGP SIGNATURE----- --3uo+9/B/ebqu+fSQ--