]> git.baikalelectronics.ru Git - kernel.git/commit
raid5-cache: add another check conditon before replaying one stripe
authorZhengyuan Liu <liuzhengyuan@kylinos.cn>
Sat, 26 Nov 2016 02:57:13 +0000 (10:57 +0800)
committerShaohua Li <shli@fb.com>
Tue, 29 Nov 2016 19:56:20 +0000 (11:56 -0800)
commita309b46eaddb37be398f3ad4e01d618b72991d68
tree11e926af1490da8eacc17c40b9b771c6ee3efe48
parentbec43f6ba91ffaf08dd2c2926fbdf199f6b80a3c
raid5-cache: add another check conditon before replaying one stripe

New stripe that was just allocated has no STRIPE_R5C_CACHING state too,
add this check condition could avoid unnecessary replaying for empty stripe.

r5l_recovery_replay_one_stripe would reset stripe for any case, delete it
to make code more clean.

Signed-off-by: Zhengyuan Liu <liuzhengyuan@kylinos.cn>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid5-cache.c