Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a31c8a
)
b=21815 move assertion under write lock
author
Johann Lombardi
<johann@sun.com>
Wed, 27 Jan 2010 14:27:07 +0000
(15:27 +0100)
committer
Johann Lombardi
<johann@sun.com>
Wed, 27 Jan 2010 14:27:07 +0000
(15:27 +0100)
lustre/obdclass/class_hash.c
patch
|
blob
|
history
diff --git
a/lustre/obdclass/class_hash.c
b/lustre/obdclass/class_hash.c
index
6164f47
..
1af2c0f
100644
(file)
--- a/
lustre/obdclass/class_hash.c
+++ b/
lustre/obdclass/class_hash.c
@@
-350,9
+350,9
@@
lustre_hash_del(lustre_hash_t *lh, void *key, struct hlist_node *hnode)
i = lh_hash(lh, key, lh->lh_cur_mask);
lhb = lh->lh_buckets[i];
LASSERT(i <= lh->lh_cur_mask);
- LASSERT(!hlist_unhashed(hnode));
write_lock(&lhb->lhb_rwlock);
+ LASSERT(!hlist_unhashed(hnode));
obj = __lustre_hash_bucket_del(lh, lhb, hnode);
write_unlock(&lhb->lhb_rwlock);
lh_read_unlock(lh);