1. 20 Oct, 2014 1 commit
  2. 04 Jun, 2014 1 commit
    • Stefan Hajnoczi's avatar
      qed: use BlockDriverState's AioContext · a8c868c3
      Stefan Hajnoczi authored
      Drop the assumption that we're using the main AioContext.  Convert
      qemu_bh_new() to aio_bh_new() and qemu_aio_wait() to aio_poll() so we're
      using the BlockDriverState's AioContext.
      
      Implement .bdrv_detach/attach_aio_context() interfaces to move the
      QED_F_NEED_CHECK timer from the old AioContext to the new one.
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      a8c868c3
  3. 19 Dec, 2012 1 commit
  4. 05 Oct, 2012 1 commit
  5. 15 Dec, 2011 1 commit
    • Paolo Bonzini's avatar
      block: bdrv_aio_* do not return NULL · ad54ae80
      Paolo Bonzini authored
      Initially done with the following semantic patch:
      
      @ rule1 @
      expression E;
      statement S;
      @@
        E =
      (
         bdrv_aio_readv
      |  bdrv_aio_writev
      |  bdrv_aio_flush
      |  bdrv_aio_discard
      |  bdrv_aio_ioctl
      )
           (...);
      (
      - if (E == NULL) { ... }
      |
      - if (E)
          { <... S ...> }
      )
      
      which however missed the occurrence in block/blkverify.c
      (as it should have done), and left behind some unused
      variables.
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      ad54ae80
  6. 05 Dec, 2011 1 commit
  7. 05 Oct, 2011 1 commit
  8. 02 Aug, 2011 1 commit
    • Kevin Wolf's avatar
      async: Remove AsyncContext · 384acbf4
      Kevin Wolf authored
      The purpose of AsyncContexts was to protect qcow and qcow2 against reentrancy
      during an emulated bdrv_read/write (which includes a qemu_aio_wait() call and
      can run AIO callbacks of different requests if it weren't for AsyncContexts).
      
      Now both qcow and qcow2 are protected by CoMutexes and AsyncContexts can be
      removed.
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      384acbf4
  9. 17 Dec, 2010 1 commit