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

DORMANTno replies

From: Jianpeng Ma <hidden>
Date: 2012-09-06 01:28:04
Subsystem: software raid (multiple disks) support, the rest · Maintainers: Song Liu, Yu Kuai, Linus Torvalds

Signed-off-by: Jianpeng Ma <redacted>
---
 drivers/md/raid5.c |    2 ++
 1 file changed, 2 insertions(+)
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 3f21074..0d61972b 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -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;
 				}
 			}
 		}
-- 
1.7.9.5
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help