1. 15 5月, 2018 1 次提交
  2. 11 5月, 2018 2 次提交
  3. 08 5月, 2018 3 次提交
    • K
      sheepdog: Fix sd_co_create_opts() memory leaks · a2cb9239
      Kevin Wolf 提交于
      Both the option string for the 'redundancy' option and the
      SheepdogRedundancy object that is created accordingly could be leaked in
      error paths. This fixes the memory leaks.
      
      Reported by Coverity (CID 1390614 and 1390641).
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Message-id: 20180503153509.22223-1-kwolf@redhat.com
      Reviewed-by: NJeff Cody <jcody@redhat.com>
      Signed-off-by: NJeff Cody <jcody@redhat.com>
      a2cb9239
    • M
      block/mirror: Make cancel always cancel pre-READY · eb36639f
      Max Reitz 提交于
      Commit b76e4458 made the mirror block
      job respect block-job-cancel's @force flag: With that flag set, it would
      now always really cancel, even post-READY.
      
      Unfortunately, it had a side effect: Without that flag set, it would now
      never cancel, not even before READY.  Considering that is an
      incompatible change and not noted anywhere in the commit or the
      description of block-job-cancel's @force parameter, this seems
      unintentional and we should revert to the previous behavior, which is to
      immediately cancel the job when block-job-cancel is called before source
      and target are in sync (i.e. before the READY event).
      
      Cc: qemu-stable@nongnu.org
      Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1572856Reported-by: NYanan Fu <yfu@redhat.com>
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Message-id: 20180501220509.14152-2-mreitz@redhat.com
      Reviewed-by: NJeff Cody <jcody@redhat.com>
      Signed-off-by: NJeff Cody <jcody@redhat.com>
      eb36639f
    • S
      block/mirror: honor ratelimit again · ddc4115e
      Stefan Hajnoczi 提交于
      Commit b76e4458 ("block/mirror: change
      the semantic of 'force' of block-job-cancel") accidentally removed the
      ratelimit in the mirror job.
      
      Reintroduce the ratelimit but keep the block-job-cancel force=true
      behavior that was added in commit
      b76e4458.
      
      Note that block_job_sleep_ns() returns immediately when the job is
      cancelled.  Therefore it's safe to unconditionally call
      block_job_sleep_ns() - a cancelled job does not sleep.
      
      This commit fixes the non-deterministic qemu-iotests 185 output.  The
      test relies on the ratelimit to make the job sleep until the 'quit'
      command is processed.  Previously the job could complete before the
      'quit' command was received since there was no ratelimit.
      
      Cc: Liang Li <liliang.opensource@gmail.com>
      Cc: Jeff Cody <jcody@redhat.com>
      Cc: Kevin Wolf <kwolf@redhat.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Message-id: 20180424123527.19168-1-stefanha@redhat.com
      Signed-off-by: NJeff Cody <jcody@redhat.com>
      ddc4115e
  4. 04 5月, 2018 3 次提交
  5. 16 4月, 2018 1 次提交
  6. 10 4月, 2018 1 次提交
    • K
      commit/stream: Reset delay_ns · 2fe4bba1
      Kevin Wolf 提交于
      Streaming and the commit block job only want to apply throttling when
      they actually copied data instead of skipping it, so they made the
      calculation of delay_ns conditional. However, delay_ns isn't reset when
      skipping some sectors, so instead of not waiting, the old delay is
      applied again.
      
      Properly reset delay_ns where needed.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      2fe4bba1
  7. 05 4月, 2018 1 次提交
  8. 03 4月, 2018 4 次提交
  9. 02 4月, 2018 1 次提交
  10. 27 3月, 2018 5 次提交
  11. 26 3月, 2018 12 次提交
  12. 20 3月, 2018 3 次提交
  13. 19 3月, 2018 3 次提交