1. 09 8月, 2012 1 次提交
    • P
      scsi-disk: more assertions and resets for aiocb · 46e3f30e
      Paolo Bonzini 提交于
      Leaving the aiocb to a non-NULL value leads to an assertion failure when
      rerror/werror are set to stop or enospc, and the operation is retried.
      scsi-disk checks that the aiocb member is NULL before filling it.
      
      This patch correctly resets the aiocb to NULL values everywhere,
      and adds the dual assertion that the aiocb was non-NULL before
      calling bdrv_acct_done.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      46e3f30e
  2. 03 8月, 2012 2 次提交
  3. 27 7月, 2012 4 次提交
  4. 26 7月, 2012 14 次提交
  5. 17 7月, 2012 6 次提交
  6. 02 7月, 2012 3 次提交
  7. 20 6月, 2012 1 次提交
  8. 15 6月, 2012 1 次提交
  9. 07 6月, 2012 1 次提交
    • G
      scsi: prepare migration code for usb-storage support · 18eef3bc
      Gerd Hoffmann 提交于
      usb-storage can't handle requests in one go as the data transfer can be
      splitted into lots of usb packets.  Because of that there can be
      normal in-flight requests at savevm time and we need to handle that.
      With other scsi hba's this happens only in case i/o is stopped due to
      errors and there are pending requests which need to be restarted
      (req->retry = true).
      
      So, first we need to save req->retry and then handle the req->retry =
      false case.  Write requests are handled fine already.  For read requests
      we have to save the buffer as we will not restart the request (and thus
      not refill the buffer) on the target host.
      
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      18eef3bc
  10. 07 5月, 2012 4 次提交
  11. 04 5月, 2012 2 次提交
  12. 19 4月, 2012 1 次提交