Re: [Qemu-devel] [PATCH v2 for-2.1] linux-aio: Fix laio resource leak

2014-07-14 Thread Stefan Hajnoczi
On Sat, Jul 12, 2014 at 11:43:37AM +0800, arei.gong...@huawei.com wrote: > From: Gonglei > > 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

[Qemu-devel] [PATCH v2 for-2.1] linux-aio: Fix laio resource leak

2014-07-11 Thread arei.gonglei
From: Gonglei 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 becaus