diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-02-13 10:15:22 -0500 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2016-02-19 13:45:53 -0500 |
commit | d2d87a3b6df3088a991e277d42cd6a549ff2bc66 (patch) | |
tree | 7ca20690b8305a13283568762d2e2ab7b69574da /fs/orangefs/orangefs-cache.c | |
parent | cf22644a0e5f1a66c61e90da15784effe3ba7ced (diff) |
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>
Diffstat (limited to 'fs/orangefs/orangefs-cache.c')
-rw-r--r-- | fs/orangefs/orangefs-cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/orangefs/orangefs-cache.c b/fs/orangefs/orangefs-cache.c index 59ab0c207e90..09194e69875f 100644 --- a/fs/orangefs/orangefs-cache.c +++ b/fs/orangefs/orangefs-cache.c | |||
@@ -118,7 +118,7 @@ struct orangefs_kernel_op_s *op_alloc(__s32 type) | |||
118 | if (new_op) { | 118 | if (new_op) { |
119 | INIT_LIST_HEAD(&new_op->list); | 119 | INIT_LIST_HEAD(&new_op->list); |
120 | spin_lock_init(&new_op->lock); | 120 | spin_lock_init(&new_op->lock); |
121 | init_waitqueue_head(&new_op->waitq); | 121 | init_completion(&new_op->waitq); |
122 | 122 | ||
123 | atomic_set(&new_op->ref_count, 1); | 123 | atomic_set(&new_op->ref_count, 1); |
124 | 124 | ||