Re: [Qemu-devel] [PATCH 15/20] rbd: Handle failure for potentially large allocations

2014-05-22 Thread Stefan Hajnoczi
On Wed, May 21, 2014 at 06:28:13PM +0200, Kevin Wolf wrote: > 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 rbd

[Qemu-devel] [PATCH 15/20] rbd: Handle failure for potentially large allocations

2014-05-21 Thread Kevin Wolf
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 rbd block driver. Signed-off-by: Kevin Wolf --- block/rbd.c | 5 -