md-cluster: init completion within lockres_init
authorGuoqing Jiang <gqjiang@suse.com>
Fri, 10 Jul 2015 09:01:16 +0000 (17:01 +0800)
committerNeilBrown <neilb@suse.com>
Mon, 31 Aug 2015 17:41:50 +0000 (19:41 +0200)
commitb83d51c0785c34d552111f38fbecbe00cd58b913
tree5566c39f667a1b87db1b22a16aa0ed3d0dec16ca
parent66099bb0ee6c20f91ace3fa5f82202fbceb67d8e
md-cluster: init completion within lockres_init

We should init completion within lockres_init, otherwise
completion could be initialized more than one time during
it's life cycle.

Reviewed-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: NeilBrown <neilb@suse.com>
drivers/md/md-cluster.c