orangefs: get rid of loop in wait_for_matching_downcall()

turn op->waitq into struct completion...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
This commit is contained in:
Al Viro
2016-02-13 10:15:22 -05:00
committed by Mike Marshall
parent cf22644a0e
commit d2d87a3b6d
3 changed files with 50 additions and 89 deletions

View File

@@ -118,7 +118,7 @@ struct orangefs_kernel_op_s *op_alloc(__s32 type)
if (new_op) {
INIT_LIST_HEAD(&new_op->list);
spin_lock_init(&new_op->lock);
init_waitqueue_head(&new_op->waitq);
init_completion(&new_op->waitq);
atomic_set(&new_op->ref_count, 1);