Gonglei a1abf40d6b linux-aio: Fix laio resource leak
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 <daifulai@huawei.com>
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2014-07-15 15:34:13 +02:00
..
2014-06-16 17:23:21 +08:00
2014-06-24 20:01:24 +04:00
2014-07-15 15:34:13 +02:00
2014-02-25 10:50:11 +00:00
2014-06-26 13:51:01 +02:00
2014-04-01 15:22:35 +02:00
2014-06-16 17:23:21 +08:00
2014-06-16 17:23:21 +08:00
2014-06-16 17:23:21 +08:00
2014-06-16 17:23:21 +08:00
2014-07-01 10:15:12 +02:00
2014-03-25 14:09:50 +01:00
2014-06-16 17:23:21 +08:00
2014-07-01 10:15:12 +02:00
2014-07-01 10:15:12 +02:00
2014-06-16 17:23:21 +08:00