linux-aio.c (94473d0c0624822f6325918eb5bfe2d8a001206a) | linux-aio.c (f2e5dca46b5ba4588c0756c5f272123585cbbf23) |
---|---|
1/* 2 * Linux native AIO support. 3 * 4 * Copyright (C) 2009 IBM, Corp. 5 * Copyright (C) 2009 Red Hat, Inc. 6 * 7 * This work is licensed under the terms of the GNU GPL, version 2 or later. 8 * See the COPYING file in the top-level directory. --- 176 unchanged lines hidden (view full) --- 185 if (event_notifier_init(&s->e, false) < 0) { 186 goto out_free_state; 187 } 188 189 if (io_setup(MAX_EVENTS, &s->ctx) != 0) { 190 goto out_close_efd; 191 } 192 | 1/* 2 * Linux native AIO support. 3 * 4 * Copyright (C) 2009 IBM, Corp. 5 * Copyright (C) 2009 Red Hat, Inc. 6 * 7 * This work is licensed under the terms of the GNU GPL, version 2 or later. 8 * See the COPYING file in the top-level directory. --- 176 unchanged lines hidden (view full) --- 185 if (event_notifier_init(&s->e, false) < 0) { 186 goto out_free_state; 187 } 188 189 if (io_setup(MAX_EVENTS, &s->ctx) != 0) { 190 goto out_close_efd; 191 } 192 |
193 qemu_aio_set_event_notifier(&s->e, qemu_laio_completion_cb, 194 NULL); | 193 qemu_aio_set_event_notifier(&s->e, qemu_laio_completion_cb); |
195 196 return s; 197 198out_close_efd: 199 event_notifier_cleanup(&s->e); 200out_free_state: 201 g_free(s); 202 return NULL; 203} | 194 195 return s; 196 197out_close_efd: 198 event_notifier_cleanup(&s->e); 199out_free_state: 200 g_free(s); 201 return NULL; 202} |