Diff for /qemu/linux-aio.c between versions 1.1.1.3 and 1.1.1.4

version 1.1.1.3, 2018/04/24 19:17:48 version 1.1.1.4, 2018/04/24 19:35:09
Line 9 Line 9
  */   */
 #include "qemu-common.h"  #include "qemu-common.h"
 #include "qemu-aio.h"  #include "qemu-aio.h"
 #include "block_int.h"  
 #include "block/raw-posix-aio.h"  #include "block/raw-posix-aio.h"
   
 #include <sys/eventfd.h>  #include <sys/eventfd.h>
Line 166  BlockDriverAIOCB *laio_submit(BlockDrive Line 165  BlockDriverAIOCB *laio_submit(BlockDrive
     off_t offset = sector_num * 512;      off_t offset = sector_num * 512;
   
     laiocb = qemu_aio_get(&laio_pool, bs, cb, opaque);      laiocb = qemu_aio_get(&laio_pool, bs, cb, opaque);
     if (!laiocb)  
         return NULL;  
     laiocb->nbytes = nb_sectors * 512;      laiocb->nbytes = nb_sectors * 512;
     laiocb->ctx = s;      laiocb->ctx = s;
     laiocb->ret = -EINPROGRESS;      laiocb->ret = -EINPROGRESS;
Line 217  void *laio_init(void) Line 214  void *laio_init(void)
         goto out_close_efd;          goto out_close_efd;
   
     qemu_aio_set_fd_handler(s->efd, qemu_laio_completion_cb, NULL,      qemu_aio_set_fd_handler(s->efd, qemu_laio_completion_cb, NULL,
         qemu_laio_flush_cb, NULL, s);          qemu_laio_flush_cb, s);
   
     return s;      return s;
   

Removed from v.1.1.1.3  
changed lines
  Added in v.1.1.1.4


unix.superglobalmegacorp.com