projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb315cd
)
md-cluster: unregister thread if err happened
author
Guoqing Jiang
<gqjiang@suse.com>
Mon, 2 May 2016 15:33:11 +0000
(11:33 -0400)
committer
Shaohua Li
<shli@fb.com>
Wed, 4 May 2016 19:39:35 +0000
(12:39 -0700)
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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/md-cluster.c
b/drivers/md/md-cluster.c
index 0d4ddf85d607e2f4a78c03eab46c3755f63ef4e2..76f88f731aa1b121f1fd138eaffc7267973b47cd 100644
(file)
--- a/
drivers/md/md-cluster.c
+++ b/
drivers/md/md-cluster.c
@@
-818,6
+818,8
@@
static int join(struct mddev *mddev, int nodes)
return 0;
err:
+ md_unregister_thread(&cinfo->recovery_thread);
+ md_unregister_thread(&cinfo->recv_thread);
lockres_free(cinfo->message_lockres);
lockres_free(cinfo->token_lockres);
lockres_free(cinfo->ack_lockres);
This page took
0.025036 seconds
and
5
git commands to generate.