Skip to content

Commit def6ae2

Browse files
neilbrownLinus Torvalds
authored andcommitted
md: fix misapplied patch in raid5.c
commit 4ae3f84 ("md: raid5: fix clearing of biofill operations") did not get applied correctly, presumably due to substantial similarities between handle_stripe5 and handle_stripe6. This patch moves the chunk of new code from handle_stripe6 (where it isn't needed (yet)) to handle_stripe5. Signed-off-by: Neil Brown <neilb@suse.de> Cc: "Dan Williams" <dan.j.williams@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 139b829 commit def6ae2

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎drivers/md/raid5.c‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2624,6 +2624,13 @@ static void handle_stripe5(struct stripe_head *sh)
26242624
s.expanded = test_bit(STRIPE_EXPAND_READY, &sh->state);
26252625
/* Now to look around and see what can be done */
26262626

2627+
/* clean-up completed biofill operations */
2628+
if (test_bit(STRIPE_OP_BIOFILL, &sh->ops.complete)) {
2629+
clear_bit(STRIPE_OP_BIOFILL, &sh->ops.pending);
2630+
clear_bit(STRIPE_OP_BIOFILL, &sh->ops.ack);
2631+
clear_bit(STRIPE_OP_BIOFILL, &sh->ops.complete);
2632+
}
2633+
26272634
rcu_read_lock();
26282635
for (i=disks; i--; ) {
26292636
mdk_rdev_t *rdev;
@@ -2897,13 +2904,6 @@ static void handle_stripe6(struct stripe_head *sh, struct page *tmp_page)
28972904
s.expanded = test_bit(STRIPE_EXPAND_READY, &sh->state);
28982905
/* Now to look around and see what can be done */
28992906

2900-
/* clean-up completed biofill operations */
2901-
if (test_bit(STRIPE_OP_BIOFILL, &sh->ops.complete)) {
2902-
clear_bit(STRIPE_OP_BIOFILL, &sh->ops.pending);
2903-
clear_bit(STRIPE_OP_BIOFILL, &sh->ops.ack);
2904-
clear_bit(STRIPE_OP_BIOFILL, &sh->ops.complete);
2905-
}
2906-
29072907
rcu_read_lock();
29082908
for (i=disks; i--; ) {
29092909
mdk_rdev_t *rdev;

0 commit comments

Comments
 (0)