summary refs log tree commit diff stats
path: root/scripts/vmstate-static-checker.py
diff options
context:
space:
mode:
authorGonglei <arei.gonglei@huawei.com>2014-07-12 11:43:37 +0800
committerStefan Hajnoczi <stefanha@redhat.com>2014-07-15 15:34:13 +0200
commita1abf40d6be2fc4b40d90ae3b46442f4a671776b (patch)
tree79e3f7b3c9b0ed4e1d1abeab52a6b4d0f46a3b38 /scripts/vmstate-static-checker.py
parent7a6d04e73fdd571234e05dcad96895fafb3f22f0 (diff)
downloadfocaccia-qemu-a1abf40d6be2fc4b40d90ae3b46442f4a671776b.tar.gz
focaccia-qemu-a1abf40d6be2fc4b40d90ae3b46442f4a671776b.zip
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>
Diffstat (limited to 'scripts/vmstate-static-checker.py')
0 files changed, 0 insertions, 0 deletions