]> git.ipfire.org Git - thirdparty/qemu.git/commit
mirror: Handle failure for potentially large allocations
authorKevin Wolf <kwolf@redhat.com>
Wed, 21 May 2014 16:16:21 +0000 (18:16 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 15 Aug 2014 13:07:16 +0000 (15:07 +0200)
commit7504edf477d2bac9cbf53225811ec595abf045e4
tree1e500356ea9eda6905c0c7712f6b6f2f3410252c
parent5fb09cd5867aabf26d5b85b0913dccd496b71421
mirror: Handle failure for potentially large allocations

Some code in the block layer makes potentially huge allocations. Failure
is not completely unexpected there, so avoid aborting qemu and handle
out-of-memory situations gracefully.

This patch addresses the allocations in the mirror block job.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
block/mirror.c