Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Device-mapper Development (http://www.linux-archive.org/device-mapper-development/)
-   -   dm-raid1.c: Conditionally ignore kcopyd errors depending on whether mirror handles them (http://www.linux-archive.org/device-mapper-development/131577-dm-raid1-c-conditionally-ignore-kcopyd-errors-depending-whether-mirror-handles-them.html)

Jonathan Brassow 07-25-2008 03:18 PM

dm-raid1.c: Conditionally ignore kcopyd errors depending on whether mirror handles them
 
brassow

dm-raid1 is setting the flag to ignore errors in kcopyd. Now that
mirroring is capable of handling errors, it should. So, we make
the setting of the 'ignore errors' flag conditional on whether
mirror is handling errors or not.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>

Index: linux-2.6.26-rc8/drivers/md/dm-raid1.c
================================================== =================
--- linux-2.6.26-rc8.orig/drivers/md/dm-raid1.c
+++ linux-2.6.26-rc8/drivers/md/dm-raid1.c
@@ -842,7 +842,9 @@ static int recover(struct mirror_set *ms
}

/* hand to kcopyd */
- set_bit(DM_KCOPYD_IGNORE_ERROR, &flags);
+ if (!errors_handled(ms))
+ set_bit(DM_KCOPYD_IGNORE_ERROR, &flags);
+
r = dm_kcopyd_copy(ms->kcopyd_client, &from, ms->nr_mirrors - 1, to,
flags, recovery_complete, reg);



--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel


All times are GMT. The time now is 07:12 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.