From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6bNT-0003vU-FW for qemu-devel@nongnu.org; Mon, 14 Jul 2014 04:12:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X6bNO-00067q-EK for qemu-devel@nongnu.org; Mon, 14 Jul 2014 04:12:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37559) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6bNO-00066X-6u for qemu-devel@nongnu.org; Mon, 14 Jul 2014 04:12:46 -0400 Date: Mon, 14 Jul 2014 10:12:36 +0200 From: Stefan Hajnoczi Message-ID: <20140714081236.GA2185@stefanha-thinkpad.redhat.com> References: <1405136617-11184-1-git-send-email-arei.gonglei@huawei.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="huq684BweRXVnRxX" Content-Disposition: inline In-Reply-To: <1405136617-11184-1-git-send-email-arei.gonglei@huawei.com> Subject: Re: [Qemu-devel] [PATCH v2 for-2.1] linux-aio: Fix laio resource leak List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: arei.gonglei@huawei.com Cc: kwolf@redhat.com, peter.maydell@linaro.org, weidong.huang@huawei.com, luonengjun@huawei.com, qemu-devel@nongnu.org, daifulai@huawei.com, pbonzini@redhat.com --huq684BweRXVnRxX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 12, 2014 at 11:43:37AM +0800, arei.gonglei@huawei.com wrote: > From: Gonglei >=20 > when hotplug virtio-scsi disks using laio, the aio_nr will > increase in laio_init() by io_setup(), we can see the number by > # cat /proc/sys/fs/aio-nr > 128 > if the aio_nr attach the maxnum, which found from > # cat /proc/sys/fs/aio-max-nr > 65536 > the hotplug process will fail because of aio context leak. >=20 > Fix it by io_destroy in laio_cleanup(). >=20 > Reported-by: daifulai > Signed-off-by: Gonglei > --- > v2: small spelling fixes. > --- > block/linux-aio.c | 5 +++++ > 1 file changed, 5 insertions(+) Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan --huq684BweRXVnRxX Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJTw5D0AAoJEJykq7OBq3PIzhEIALP6SbAGmYa9vvzcjnmAEHXa GtXs+Ehn4jHHBiC8fX2F+BHenwifibA4XcsW9QCFH3gTp6Hl1QS5uYUwNqU0OQN6 nhaY0S/PxKcqbkiW4US0ZLU+FV7jGpO/hxV9pDUJJbwA5BLS5pGxBopGkzvTxVIM yeRRKb/Bnta0qT1xx5Gmlx7HJT3zRzKjR8pYBMJYfk+2L6sx1E0vEzVqcPdX1rCL MRr3s8KxZnKlZHj69BZucukPLxR9esDoE4ioXVoXqIe9tA7RKHXpzcJ+io/wn/1r i8NzogVwZ67Ow4dsIGTZfJQgH/SQ6Q9jUd7hnWqCZ28mmp4uJCV6zG/ar2IrwvI= =Ve79 -----END PGP SIGNATURE----- --huq684BweRXVnRxX--