ClusterLabs/pacemaker — pull request #231 by haibinshi (2013-02-21 05:27:49+00:00)
Title: High: RA: controld - wait for dlm_controld to be ready in start phase

This patch fixes the race between dlm_controld and clvmd start sequence.

Currently the controld RA only checks if the dlm_controld process exists
and then returns the start operation is completed successfully. While the
starting of dlm_controld might not be completed at that moment, because
the daemon is there, but dlm_controld needs to do a lot of other initialization
like adding configfs node, which might not be finished yet. So if just at that
time, clvmd is started and talks to dlm to create lockspace, it will fail.

So this fix is to add another judegement in the start operation of controld RA,
which makes sure the needed initialization in dlm_controld has been done.