summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-raid1.c
diff options
context:
space:
mode:
authorMikulas Patocka2012-12-21 21:23:32 +0100
committerAlasdair G Kergon2012-12-21 21:23:32 +0100
commit19cbbc60c680e2e404bf55458ad2c4ff60d16076 (patch)
treead95b111e977da491f5f777873a8c7bf79c60c4e /drivers/md/dm-raid1.c
parentdm raid1: remove impossible mempool_alloc error test (diff)
downloadkernel-qcow2-linux-19cbbc60c680e2e404bf55458ad2c4ff60d16076.tar.gz
kernel-qcow2-linux-19cbbc60c680e2e404bf55458ad2c4ff60d16076.tar.xz
kernel-qcow2-linux-19cbbc60c680e2e404bf55458ad2c4ff60d16076.zip
dm raid: use DM_ENDIO_INCOMPLETE
Use a defined macro DM_ENDIO_INCOMPLETE instead of a numeric constant. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-raid1.c')
-rw-r--r--drivers/md/dm-raid1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c
index b37467618b16..cec5f9b3a278 100644
--- a/drivers/md/dm-raid1.c
+++ b/drivers/md/dm-raid1.c
@@ -1257,7 +1257,7 @@ static int mirror_end_io(struct dm_target *ti, struct bio *bio,
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");
}