PATCH - md - Fix a typo in a recent patchset for raid5

From: Neil Brown <hidden>
Date: 2002-08-30 05:23:27


 ----------- Diffstat output ------------
 ./drivers/md/raid5.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
--- ./drivers/md/raid5.c	2002/08/30 02:56:35	1.1
+++ ./drivers/md/raid5.c	2002/08/30 05:20:51	1.2
@@ -937,7 +937,7 @@ static void handle_stripe(struct stripe_
 	    for (i=disks; i--; )
 		if (sh->dev[i].written) {
 		    dev = &sh->dev[i];
-		    if (!test_bit(R5_Insync, &dev->flags) &&
+		    if (!test_bit(R5_Insync, &sh->dev[sh->pd_idx].flags) &&
 			(!test_bit(R5_LOCKED, &dev->flags) && test_bit(R5_UPTODATE, &dev->flags)) ) {
 			/* maybe we can return some write requests */
 			    struct bio *wbi, *wbi2;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help