* PATCH - md in 2.4.19-pre - Correctly abort recovery if raid personality indicates an error
@ 2002-05-15 5:42 Neil Brown
0 siblings, 0 replies; only message in thread
From: Neil Brown @ 2002-05-15 5:42 UTC (permalink / raw)
To: Marcelo Tosatti; +Cc: linux-raid
When a raid personality reports an error we should make sure
that recovery is aborted.
Normally it would be anyway, as an IO error will cause
md_error to be called which aborts recovery.
However, in raid5, if two drives fail before recovery starts, then no
error will actually happen during recovery, but the raid5 module
will report each resync request as failing. We really shouldn't
ignore this...
----------- Diffstat output ------------
./drivers/md/md.c | 4 ++++
1 files changed, 4 insertions(+)
--- ./drivers/md/md.c 2002/05/15 05:36:13 1.1
+++ ./drivers/md/md.c 2002/05/15 05:38:05 1.2
@@ -3332,6 +3332,10 @@
wake_up(&mddev->recovery_wait);
if (!ok) {
// stop recovery, signal do_sync ....
+ if (mddev->pers->stop_resync)
+ mddev->pers->stop_resync(mddev);
+ if (mddev->recovery_running)
+ md_interrupt_thread(md_recovery_thread);
}
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-05-15 5:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-15 5:42 PATCH - md in 2.4.19-pre - Correctly abort recovery if raid personality indicates an error Neil Brown
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).