]> git.karo-electronics.de Git - linux-beck.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)
commitbc8f167f9c4656b7a972936237e9c38e6ab80c67
tree5a8e38d74ff8ffb0e3916bbf977e2c34b4134e66
parentfc833c2a2f4129c42efdaed64b9eb6e9ae5fdcee
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