[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 for-2.1] linux-aio: Fix laio resource leak
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH v2 for-2.1] linux-aio: Fix laio resource leak |
Date: |
Mon, 14 Jul 2014 10:12:36 +0200 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Sat, Jul 12, 2014 at 11:43:37AM +0800, address@hidden wrote:
> From: Gonglei <address@hidden>
>
> 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.
>
> Fix it by io_destroy in laio_cleanup().
>
> Reported-by: daifulai <address@hidden>
> Signed-off-by: Gonglei <address@hidden>
> ---
> 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
pgpaLRLbVwJ3o.pgp
Description: PGP signature