Skip to contentSkip to conversation

dm-raid: use DM_ENDIO_INCOMPLETE

PATCH New Mikulas Patocka 1 participant 1 message Oct 15, 2012 Device mapper

lore
Share & tools
lore

Mikulas Patocka

author maintainer
#0 lore raw

PATCH 1/1 dm-raid: use DM_ENDIO_INCOMPLETE

dm-raid: use DM_ENDIO_INCOMPLETE

Use a defined macro DM_ENDIO_INCOMPLETE instead of a numeric constant.

---
 drivers/md/dm-raid1.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm-raid1.c +1 -1
Index: linux-3.6.2-fast/drivers/md/dm-raid1.c
===================================================================
@@ -1260,7 +1260,7 @@ static int mirror_end_io(struct dm_targe
 			mempool_free(read_record, ms->read_record_pool);
 			map_context->ptr = NULL;
 			queue_bio(ms, bio, rw);
-			return 1;
+			return DM_ENDIO_INCOMPLETE;
 		}
 		DMERR("All replicated volumes dead, failing I/O");
 	}