Linux RAID subsystem development
 help / color / mirror / Atom feed
* [PATCH] DM RAID: Explicitly turn off bad block support
@ 2013-04-19 13:30 Jonathan Brassow
  2013-04-22  0:52 ` NeilBrown
  0 siblings, 1 reply; 6+ messages in thread
From: Jonathan Brassow @ 2013-04-19 13:30 UTC (permalink / raw)
  To: linux-raid; +Cc: neilb, jbrassow

DM RAID:  Explicitly turn off bad block support

DM RAID does not currently use the bad block tracking available in
MD.  'badblocks.shift' must be set to '-1' in order to explicitly
tell MD not to perform bad block related functions, like
narrow_write_error().

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

Index: linux-upstream/drivers/md/dm-raid.c
===================================================================
--- linux-upstream.orig/drivers/md/dm-raid.c
+++ linux-upstream/drivers/md/dm-raid.c
@@ -170,8 +170,10 @@ static struct raid_set *context_alloc(st
 	rs->md.delta_disks = 0;
 	rs->md.recovery_cp = 0;
 
-	for (i = 0; i < raid_devs; i++)
+	for (i = 0; i < raid_devs; i++) {
 		md_rdev_init(&rs->dev[i].rdev);
+		rs->dev[i].rdev.badblocks.shift = -1; /* No bad block support */
+	}
 
 	/*
 	 * Remaining items to be initialized by further RAID params:



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-04-24  6:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-19 13:30 [PATCH] DM RAID: Explicitly turn off bad block support Jonathan Brassow
2013-04-22  0:52 ` NeilBrown
2013-04-22 16:29   ` Brassow Jonathan
2013-04-23  0:05     ` NeilBrown
2013-04-24  3:48       ` Brassow Jonathan
2013-04-24  6:24         ` NeilBrown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox