]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/md/md.c
md-cluster/raid10: call update_size in md_reap_sync_thread
authorGuoqing Jiang <gqjiang@suse.com>
Thu, 18 Oct 2018 08:37:44 +0000 (16:37 +0800)
committerShaohua Li <shli@fb.com>
Thu, 18 Oct 2018 16:38:06 +0000 (09:38 -0700)
commitaefb2e5fc2be590e6bef8985f3d175c3d38b0b77
treeca88b03b17faa56f2cd3fcdc4384aa680962846b
parent5ebaf80bc8d5826edcc2d1cea26a7d5a4b8f01dd
md-cluster/raid10: call update_size in md_reap_sync_thread

We need to change the capacity in all nodes after one node
finishs reshape. And as we did before, we can't change the
capacity directly in md_do_sync, instead, the capacity should
be only changed in update_size or received CHANGE_CAPACITY
msg.

So master node calls update_size after completes reshape in
md_reap_sync_thread, but we need to skip ops->update_size if
MD_CLOSING is set since reshaping could not be finish.

Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md.c