]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Incremental.c
Remove race for starting container devices.
authorJes Sorensen <Jes.Sorensen@redhat.com>
Sat, 22 Oct 2011 00:29:47 +0000 (11:29 +1100)
committerNeilBrown <neilb@suse.de>
Sat, 22 Oct 2011 00:29:47 +0000 (11:29 +1100)
commit5fc8cff3a4177dfbab594947283117620b4b8c9c
tree12534d40e24f07ab65415d7e281bc9f801e973bf
parent9c8c121881769c9ce77fd7d981608c976aac8b5b
Remove race for starting container devices.

This moves the lock handling out of Incremental_container() and relies
on the caller holding the lock. This prevents conflict with a
follow-on mdadm comment which may try and launch the device in
parallel.

This involves replacing a call to "Incremental" with an
unrolled version with just the case that calls Incremental_container
and so needs a call to ->load_container.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Incremental.c