1. 05 9月, 2017 2 次提交
  2. 18 7月, 2017 2 次提交
  3. 26 6月, 2017 1 次提交
  4. 16 6月, 2017 4 次提交
  5. 21 2月, 2017 2 次提交
  6. 24 10月, 2016 1 次提交
  7. 19 5月, 2016 5 次提交
  8. 12 5月, 2016 2 次提交
  9. 20 1月, 2016 1 次提交
  10. 11 11月, 2015 1 次提交
    • A
      throttle: Check for pending requests in throttle_group_unregister_bs() · 5ac72418
      Alberto Garcia 提交于
      throttle_group_unregister_bs() removes a BlockDriverState from its
      throttling group and destroys the timers. This means that there must
      be no pending throttled requests at that point (because it would be
      impossible to complete them), so the caller has to drain them first.
      
      At the moment throttle_group_unregister_bs() is only called from
      bdrv_io_limits_disable(), which already takes care of draining the
      requests, so there's nothing to worry about, but this patch makes
      this invariant explicit in the documentation and adds the relevant
      assertions.
      Signed-off-by: NAlberto Garcia <berto@igalia.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      5ac72418
  11. 24 10月, 2015 2 次提交
  12. 23 6月, 2015 1 次提交
    • A
      throttle: Check current timers before updating any_timer_armed[] · 2f388b93
      Alberto Garcia 提交于
      Calling throttle_group_config() cancels all timers from a particular
      BlockDriverState, so any_timer_armed[] should be updated accordingly.
      
      However, with the current code it may happen that a timer is armed in
      a different BlockDriverState from the same group, so any_timer_armed[]
      would be set to false in a situation where there is still a timer
      armed.
      
      The consequence is that we might end up with two timers armed. This
      should not have any noticeable impact however, since all accesses to
      the ThrottleGroup are protected by a lock, and the situation would
      become normal again shortly thereafter as soon as all timers have been
      fired.
      
      The correct way to solve this is to check that we're actually
      cancelling a timer before updating any_timer_armed[].
      Signed-off-by: NAlberto Garcia <berto@igalia.com>
      Message-id: 1434382875-3998-1-git-send-email-berto@igalia.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      2f388b93
  13. 12 6月, 2015 3 次提交