summary refs log tree commit diff stats
path: root/hw/usb/dev-storage.c
diff options
context:
space:
mode:
authorAlberto Garcia <berto@igalia.com>2018-08-02 17:50:26 +0300
committerKevin Wolf <kwolf@redhat.com>2018-08-15 12:50:39 +0200
commit25b8e4db7f3baca47244ccd945eb62b32a6e2019 (patch)
tree7bacf36596dc3aba9021987929993826d1d6029b /hw/usb/dev-storage.c
parent3db3e9c621519cbfc2b52e98b38f13ad863c0062 (diff)
downloadfocaccia-qemu-25b8e4db7f3baca47244ccd945eb62b32a6e2019.tar.gz
focaccia-qemu-25b8e4db7f3baca47244ccd945eb62b32a6e2019.zip
throttle-groups: Don't allow timers without throttled requests
Commit 6fccbb475bc6effc313ee9481726a1748b6dae57 fixed a bug caused by
QEMU attempting to remove a throttle group member with no pending
requests but an active timer set. This was the result of a previous
bdrv_drained_begin() call processing the throttled requests but
leaving the timer untouched.

Although the commit does solve the problem, the situation shouldn't
happen in the first place. If we try to drain a throttle group member
which has a timer set, we should cancel the timer instead of ignoring
it.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/usb/dev-storage.c')
0 files changed, 0 insertions, 0 deletions