Skip to contentSkip to conversation

Device Mapper Mirror

PATCH New Jonathan Brassow 1 participant 1 message Nov 7, 2006 Device mapper

lore
Share & tools
lore
#0 lore raw

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
Index: linux-2.6.18.1/drivers/md/dm-raid1.c
===================================================================
@@ -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;
 	}