commit | b15446fdbf4ac2b29f6ee5080630a80715abfc20 | [log] [tgz] |
---|---|---|
author | Stefan Hajnoczi <stefanha@redhat.com> | Wed May 14 16:22:47 2014 +0200 |
committer | Stefan Hajnoczi <stefanha@redhat.com> | Wed Jun 04 09:56:12 2014 +0200 |
tree | 8898c63d88b9b5fd673a5fae6e27d95712b48135 | |
parent | 22524f726210f38298dfb1cefa30257133ad6b8c [diff] |
blockdev: acquire AioContext in block_set_io_throttle The block_set_io_throttle QMP and HMP commands modify I/O throttling limits for block devices. Acquire the BlockDriverState's AioContext to protect against race conditions with an IOThread that is running I/O for this device. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Benoit Canet <benoit@irqsave.net>