]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Assemble: provide protection when clustered raid do assemble
authorGuoqing Jiang <gqjiang@suse.com>
Mon, 22 Jan 2018 09:12:09 +0000 (17:12 +0800)
committerJes Sorensen <jsorensen@fb.com>
Thu, 8 Mar 2018 19:18:41 +0000 (14:18 -0500)
commit76781701a487090172d32befae07671a10ea88ad
treef0ee6e6a17693773f64eb336d27049f31a1c90d2
parent1b7eb962db2cf9179d097e06cce74b84ac80e49d
Assemble: provide protection when clustered raid do assemble

The previous patch provides protection for other modes
such as CREATE, MANAGE, GROW and INCREMENTAL. And for
ASSEMBLE mode, we also need to protect during the process
of assemble clustered raid.

However, we can only know the array is clustered or not
when the metadata is ready, so the lock_cluster is called
after select_devices(). And we could re-read the metadata
when doing auto-assembly, so refresh the locking.

Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Assemble.c