block: Fix multiwrite error handling
commitcb6d3ca07b8f62b47ef30c6a92caa3e8bd71248b
authorKevin Wolf <kwolf@redhat.com>
Thu, 1 Apr 2010 20:48:44 +0000 (1 22:48 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 9 Apr 2010 22:14:23 +0000 (10 00:14 +0200)
tree40a48a4634cc5ac2a32742be67e6c96bd65eab87
parentbaf0b55a9e57b909b1f8b0f732c0b10242867418
block: Fix multiwrite error handling

When two requests of the same multiwrite batch fail, the callback of all
requests in that batch were called twice. This could have any kind of nasty
effects, in my case it lead to use after free and eventually a segfault.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
block.c