[Qemu-devel] [PATCH 06/12] migration: use migrate_fd_close in migrate_fd_cleanup

2012-11-02 Thread Paolo Bonzini
migrate_fd_cleanup will usually close the file descriptor via buffered_file_close's call to migrate_fd_close. However, in the case of s->file == NULL it is "inlining" migrate_fd_close (almost: there is a direct close() instead of using s->close(s)). To fix the inconsistency and clean up the code,

Re: [Qemu-devel] [PATCH 06/12] migration: use migrate_fd_close in migrate_fd_cleanup

2012-10-28 Thread Paolo Bonzini
Il 28/10/2012 10:47, Orit Wasserman ha scritto: >> > if (s->file) { >> > DPRINTF("closing file\n"); >> > ret = qemu_fclose(s->file); >> > -s->file = NULL; > why remove this line? Good catch. Paolo

Re: [Qemu-devel] [PATCH 06/12] migration: use migrate_fd_close in migrate_fd_cleanup

2012-10-28 Thread Orit Wasserman
On 10/18/2012 12:22 PM, Paolo Bonzini wrote: > migrate_fd_cleanup will usually close the file descriptor via > buffered_file_close's call to migrate_fd_close. However, in the case > of s->file == NULL it is "inlining" migrate_fd_close (almost: there is a > direct close() instead of using s->close(

[Qemu-devel] [PATCH 06/12] migration: use migrate_fd_close in migrate_fd_cleanup

2012-10-18 Thread Paolo Bonzini
migrate_fd_cleanup will usually close the file descriptor via buffered_file_close's call to migrate_fd_close. However, in the case of s->file == NULL it is "inlining" migrate_fd_close (almost: there is a direct close() instead of using s->close(s)). To fix the inconsistency and clean up the code,