]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid5-cache: release the stripe_head at the appropriate location
authorJackieLiu <liuyun01@kylinos.cn>
Mon, 28 Nov 2016 08:19:20 +0000 (16:19 +0800)
committerShaohua Li <shli@fb.com>
Tue, 29 Nov 2016 22:46:22 +0000 (14:46 -0800)
commitcb96cd4f4cda4b0c9b8f5da24ac56c506f3ed3a3
tree5a8e38d74ff8ffb0e3916bbf977e2c34b4134e66
parentfbc873ce8289afb5dccfe33a244a136aaa41cabe
md/raid5-cache: release the stripe_head at the appropriate location

If we released the 'stripe_head' in r5c_recovery_flush_log,
ctx->cached_list will both release the data-parity stripes and
data-only stripes, which will become empty.
And we also need to use the data-only stripes in
r5c_recovery_rewrite_data_only_stripes, so we should wait util rewrite
data-only stripes is done before releasing them.

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