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-07-09 15:50:11 +02:00
2014-06-04 09:56:11 +02:00
2014-06-04 09:56:11 +02:00
2014-04-30 14:46:17 +02:00
2014-04-23 11:34:10 +02:00
2014-07-01 10:47:01 +02:00
2014-07-01 10:15:34 +02:00
2014-06-16 17:23:19 +08:00
2014-04-30 14:46:17 +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-07-07 09:15:29 +02:00
2014-06-04 09:56:11 +02:00
2014-06-04 09:56:11 +02:00
2014-06-04 09:56:11 +02:00
2014-06-26 13:51:01 +02:00
2014-04-01 15:22:35 +02:00
2014-06-27 18:20:29 +02:00
2013-10-11 16:50:00 +02:00
2014-05-28 14:28:46 +02:00
2014-06-23 11:12:27 -04:00
2014-04-01 15:22:35 +02:00
2014-07-14 12:03:20 +02:00
2014-04-01 15:22:35 +02:00
2014-06-26 13:51:01 +02:00
2012-08-10 10:25:12 +02:00
2011-08-20 23:01:08 -05:00
2011-08-20 23:01:08 -05:00
2012-03-12 15:14:06 +01:00
2014-06-04 09:56:11 +02:00
2014-07-14 12:03:20 +02:00
2014-07-14 12:03:20 +02:00
2014-06-27 14:18:17 +02:00
2014-06-16 17:23:21 +08:00
2014-07-07 11:05:17 +02:00
2014-07-14 12:03:20 +02:00
2014-06-16 17:23:21 +08:00
2014-06-16 17:23:21 +08:00
2014-06-23 16:36:13 +08:00
2014-02-17 11:57:23 -05:00
2014-06-16 17:23:21 +08:00
2014-07-01 10:47:01 +02:00
2014-07-01 10:15:12 +02:00
2013-11-07 13:58:59 +01:00
2014-03-25 14:09:50 +01: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-07-01 10:15:12 +02:00
2014-06-16 17:23:21 +08:00
2014-06-04 09:56:12 +02:00