diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-02-13 18:15:22 +0300 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2016-02-19 21:45:53 +0300 |
commit | d2d87a3b6df3088a991e277d42cd6a549ff2bc66 (patch) | |
tree | 7ca20690b8305a13283568762d2e2ab7b69574da /fs/orangefs/orangefs-cache.c | |
parent | cf22644a0e5f1a66c61e90da15784effe3ba7ced (diff) | |
download | linux-d2d87a3b6df3088a991e277d42cd6a549ff2bc66.tar.xz |
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) 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); |