]> git.karo-electronics.de Git - karo-tx-linux.git/commit
raid5-cache: don't set STRIPE_R5C_PARTIAL_STRIPE flag while load stripe into cache
authorZhengyuan Liu <liuzhengyuan@kylinos.cn>
Sat, 26 Nov 2016 02:57:14 +0000 (10:57 +0800)
committerShaohua Li <shli@fb.com>
Tue, 29 Nov 2016 22:45:14 +0000 (14:45 -0800)
commit462eb7d87297dae5837f3445b68b79e835ab0d6c
tree50567f8169c15e45079933a4d27dae7f0a754c3d
parentf7b7bee75e06cbdce864f7b313ac05555e7eff6b
raid5-cache: don't set STRIPE_R5C_PARTIAL_STRIPE flag while load stripe into cache

r5c_recovery_load_one_stripe should not set STRIPE_R5C_PARTIAL_STRIPE flag,as
the data-only stripe may be STRIPE_R5C_FULL_STRIPE stripe. The state machine
would release the stripe later and add it into neither r5c_cached_full_stripes
list or r5c_cached_partial_stripes list and set correct flag.

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