From: Shaohua Li Date: Fri, 29 Apr 2016 21:18:03 +0000 (-0700) Subject: raid5: delete unnecessary warnning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b8a0b8e94648179b92191e5cf4fd3c4379b31cc4;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git raid5: delete unnecessary warnning If device has R5_LOCKED set, it's legit device has R5_SkipCopy set and page != orig_page. After R5_LOCKED is clear, handle_stripe_clean_event will clear the SkipCopy flag and set page to orig_page. So the warning is unnecessary. Reported-by: Joey Liao Signed-off-by: Shaohua Li --- diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 8ab8b65e1741..e48c262ce032 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -3502,8 +3502,6 @@ returnbi: dev = &sh->dev[i]; } else if (test_bit(R5_Discard, &dev->flags)) discard_pending = 1; - WARN_ON(test_bit(R5_SkipCopy, &dev->flags)); - WARN_ON(dev->page != dev->orig_page); } r5l_stripe_write_finished(sh);