Alberto Garcia db6283385c throttle: acquire the ThrottleGroup lock in bdrv_swap()
bdrv_swap() touches the fields of a BlockDriverState that are
protected by the ThrottleGroup lock. Although those fields end up in
their original place, they are temporarily swapped in the process,
so there's a chance that an operation on a member of the same group
happening on a different thread can try to use them.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: d92dc40d7c4f1fc5cda5cbbf4ffb7a4670b79d17.1433779731.git.berto@igalia.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2015-06-12 14:00:00 +01:00
..
2015-02-06 16:11:38 +00:00
2015-06-11 15:33:38 +01:00
2015-06-10 18:15:04 +02:00
2015-05-11 08:59:07 -04:00
2015-06-04 18:33:24 +01:00
2015-05-27 17:52:03 +02:00
2015-02-16 15:07:19 +00:00
2015-02-05 17:16:14 +01:00