Device Mapper Mirror
PATCH 1/1 Device Mapper Mirror
brassow
This patch finishes off the previous patch of similar name, but the patches giving the ability to requeue bios to core device-mapper must be in place.
This patch requeues write requests if the log can not be updated.
drivers/md/dm-raid1.c +5 -7
@@ -973,14 +973,12 @@ static void do_write(struct mirror_set *struct io_region io[KCOPYD_MAX_REGIONS +1 ];struct mirror *m; -/* -* FIXME: Requeue I/O to dm-core -* Otherwise, errors result if log device fails. -* We cannot allow writes to continue if log device -* is dead. -*/ if (log_failure) { -bio_endio (bio, bio->bi_size, -EIO ); +/* +* Requeue I/O to dm-core. We cannot allow +* writes to continue if log device is dead. +*/ +bio_endio (bio, bio->bi_size,DM_ENDIO_REQUEUE );return ; }