Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Replace RW_LOCK_UNLOCKED() with rwlock_init() as the former doesn't work with
[fs/lustre-release.git]
/
lustre
/
lov
/
lov_pool.c
diff --git
a/lustre/lov/lov_pool.c
b/lustre/lov/lov_pool.c
index
fe55794
..
12115eb
100644
(file)
--- a/
lustre/lov/lov_pool.c
+++ b/
lustre/lov/lov_pool.c
@@
-280,7
+280,7
@@
int lov_ost_pool_init(struct ost_pool *op, unsigned int count)
count = LOV_POOL_INIT_COUNT;
op->op_array = NULL;
op->op_count = 0;
-
op->op_rwlock = RW_LOCK_UNLOCKED
;
+
rwlock_init(&op->op_rwlock)
;
op->op_size = count;
OBD_ALLOC(op->op_array, op->op_size * sizeof(op->op_array[0]));
if (op->op_array == NULL) {