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
LU-15284 llite: access lli_lsm_md with lock in all places
[fs/lustre-release.git]
/
lustre
/
llite
/
statahead.c
diff --git
a/lustre/llite/statahead.c
b/lustre/llite/statahead.c
index
5922daa
..
c5a9a36
100644
(file)
--- a/
lustre/llite/statahead.c
+++ b/
lustre/llite/statahead.c
@@
-1189,8
+1189,10
@@
static int ll_statahead_thread(void *arg)
}
pos = le64_to_cpu(dp->ldp_hash_end);
+ down_read(&lli->lli_lsm_sem);
ll_release_page(dir, page,
le32_to_cpu(dp->ldp_flags) & LDF_COLLIDE);
+ up_read(&lli->lli_lsm_sem);
if (sa_low_hit(sai)) {
rc = -EFAULT;