md-cluster: unregister thread if err happened
authorGuoqing Jiang <gqjiang@suse.com>
Mon, 2 May 2016 15:33:11 +0000 (11:33 -0400)
committerShaohua Li <shli@fb.com>
Wed, 4 May 2016 19:39:35 +0000 (12:39 -0700)
commit5b0fb33e8aa1c8a94f763d1025445146412ca766
treec4a6a7c0509a2a3b0dfad6ea91ca6e6d493b30ec
parenteb315cd0933b903126996e79c12cb1eae617a036
md-cluster: unregister thread if err happened

The two threads need to be unregistered if a node
can't join cluster successfully.

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-cluster.c