[DRBD-cvs] svn commit by phil - r1972 - branches/drbd-0.7/drbd - In
case a hard disk failes a read requests, we reissue
drbd-cvs at lists.linbit.com
drbd-cvs at lists.linbit.com
Mon Sep 26 12:59:35 CEST 2005
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Author: phil
Date: 2005-09-26 12:59:34 +0200 (Mon, 26 Sep 2005)
New Revision: 1972
Modified:
branches/drbd-0.7/drbd/drbd_worker.c
Log:
In case a hard disk failes a read requests, we reissue
that read request on our peer. But up to now we missed
to infor our peer about the fact that our disk failed.
This patch fixes this.
Modified: branches/drbd-0.7/drbd/drbd_worker.c
===================================================================
--- branches/drbd-0.7/drbd/drbd_worker.c 2005-09-22 20:59:08 UTC (rev 1971)
+++ branches/drbd-0.7/drbd/drbd_worker.c 2005-09-26 10:59:34 UTC (rev 1972)
@@ -374,6 +374,10 @@
// FIXME: what if partner was SyncTarget, and is out of sync for
// this area ?? ... should be handled in the receiver.
+
+ ok = drbd_io_error(mdev);
+ if(unlikely(!ok)) ERR("Sending in w_read_retry_remote() failed\n");
+
inc_ap_pending(mdev);
ok = drbd_read_remote(mdev,req);
if(unlikely(!ok)) {
More information about the drbd-cvs
mailing list