1. 29 8月, 2018 1 次提交
  2. 18 6月, 2018 1 次提交
    • K
      block: Really pause block jobs on drain · 89bd0305
      Kevin Wolf 提交于
      We already requested that block jobs be paused in .bdrv_drained_begin,
      but no guarantee was made that the job was actually inactive at the
      point where bdrv_drained_begin() returned.
      
      This introduces a new callback BdrvChildRole.bdrv_drained_poll() and
      uses it to make bdrv_drain_poll() consider block jobs using the node to
      be drained.
      
      For the test case to work as expected, we have to switch from
      block_job_sleep_ns() to qemu_co_sleep_ns() so that the test job is even
      considered active and must be waited for when draining the node.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      89bd0305
  3. 23 5月, 2018 31 次提交
  4. 17 5月, 2018 1 次提交
    • S
      blockjob: do not cancel timer in resume · 4c7e813c
      Stefan Hajnoczi 提交于
      Currently the timer is cancelled and the block job is entered by
      block_job_resume().  This behavior causes drain to run extra blockjob
      iterations when the job was sleeping due to the ratelimit.
      
      This patch leaves the job asleep when block_job_resume() is called.
      Jobs can still be forcibly woken up using block_job_enter(), which is
      used to cancel jobs.
      
      After this patch drain no longer runs extra blockjob iterations.  This
      is the expected behavior that qemu-iotests 185 used to rely on.  We
      temporarily changed the 185 test output to make it pass for the QEMU
      2.12 release but now it's time to address this issue.
      
      Cc: QingFeng Hao <haoqf@linux.vnet.ibm.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NQingFeng Hao <haoqf@linux.vnet.ibm.com>
      Message-id: 20180508135436.30140-3-stefanha@redhat.com
      Reviewed-by: NJeff Cody <jcody@redhat.com>
      Signed-off-by: NJeff Cody <jcody@redhat.com>
      4c7e813c
  5. 15 5月, 2018 6 次提交