Skip to contentSkip to conversation

raid5: If stripe was on delay state,it don't judge other disks state.

PATCH New Jianpeng Ma 1 participant 1 message Sep 6, 2012 MD RAID

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 raid5: If stripe was on delay state,it don't judge other disks state.

---
 drivers/md/raid5.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/md/raid5.c +2 -0
index 3f21074..0d61972b 100644
@@ -2819,6 +2819,7 @@ static void handle_stripe_dirtying(struct r5conf *conf,
 				} else {
 					set_bit(STRIPE_DELAYED, &sh->state);
 					set_bit(STRIPE_HANDLE, &sh->state);
+					break;
 				}
 			}
 		}
@@ -2845,6 +2846,7 @@ static void handle_stripe_dirtying(struct r5conf *conf,
 				} else {
 					set_bit(STRIPE_DELAYED, &sh->state);
 					set_bit(STRIPE_HANDLE, &sh->state);
+					break;
 				}
 			}
 		}
Signature · 1 line
1.7.9.5