diff options
author | Shaohua Li <shli@fb.com> | 2016-04-29 23:18:03 +0200 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2016-04-29 23:18:03 +0200 |
commit | b8a0b8e94648179b92191e5cf4fd3c4379b31cc4 (patch) | |
tree | 9c44d89fcdb00e7c2c7b4fd3c84565d4c7e775a6 /drivers | |
parent | MD: make bio mergeable (diff) | |
download | linux-b8a0b8e94648179b92191e5cf4fd3c4379b31cc4.tar.xz linux-b8a0b8e94648179b92191e5cf4fd3c4379b31cc4.zip |
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 <joeyliao@qnap.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/raid5.c | 2 |
1 files changed, 0 insertions, 2 deletions
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); |