md-cluster: convert the completion to wait queue
authorGuoqing Jiang <gqjiang@suse.com>
Fri, 12 Aug 2016 05:42:41 +0000 (13:42 +0800)
committerShaohua Li <shli@fb.com>
Wed, 21 Sep 2016 16:09:44 +0000 (09:09 -0700)
commitfccb60a42cdd863aa80f32214ae58ae13936c927
tree4af1e586d9250be17c8fb8f48042bd8d20d62055
parent5f0aa21da6cc620b08e5f69f51db29cb1f722174
md-cluster: convert the completion to wait queue

Previously, we used completion to sync between require dlm lock
and sync_ast, however we will have to expose completion.wait
and completion.done in dlm_lock_sync_interruptible (introduced
later), it is not a common usage for completion, so convert
related things to wait queue.

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