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:
parent
cf22644a0e
commit
d2d87a3b6d
3 changed files with 50 additions and 89 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue