linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* question about:raid1 fix_read_error
@ 2012-04-11  5:09 majianpeng
  0 siblings, 0 replies; only message in thread
From: majianpeng @ 2012-04-11  5:09 UTC (permalink / raw)
  To: Neil Brown; +Cc: linux-raid

Hi,Neil
	I readed the code of raid1:fix_read_error().I find some problem:
1:In order to find other correct data, your code only judge :
				rdev &&
			    test_bit(In_sync, &rdev->flags) &&
			    is_badblock(rdev, sect, s,
					&first_bad, &bad_sectors) == 0 &&
			    sync_page_io(rdev, sect, s<<9,
					 conf->tmppage, READ, false))
 	But the spare disk which is woring ? you can use spare disk is read_balance().
	If you can using spare disk why you set bad blocks?
2: about set bad blocks,when did not find correct data.
	You only:
	struct md_rdev *rdev = conf->mirrors[read_disk].rdev;
			if (!rdev_set_badblocks(rdev, sect, s, 0))
				md_error(mddev, rdev);
	But the other disks which you try to find.
	If you did not set all disks,then in read_balance will read other disk which call in fix_read_error.But the result is the same,
	read error and  set badsectors.
--------------
majianpeng
2012-04-11


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-04-11  5:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-11  5:09 question about:raid1 fix_read_error majianpeng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).