]> git.proxmox.com Git - mirror_qemu.git/commit - blockdev.c
block: cancel jobs when a device is ready to go away
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 30 Mar 2012 11:17:10 +0000 (13:17 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 5 Apr 2012 12:54:40 +0000 (14:54 +0200)
commit12bde0eed6b740787bca2c998a838b20c556d0ec
tree70575b80de60a28bdae472b679caaba8d0299f3a
parent498e386c58497f621a37301ea6e8ca886f9f2e07
block: cancel jobs when a device is ready to go away

We do not want jobs to keep a device busy for a possibly very long
time, and management could become confused because they thought a
device was not even there anymore.  So, cancel long-running jobs
as soon as their device is going to disappear.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c