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-14713 llite: mend the trunc_sem_up_write()
[fs/lustre-release.git]
/
lustre
/
llite
/
llite_internal.h
diff --git
a/lustre/llite/llite_internal.h
b/lustre/llite/llite_internal.h
index
0d914b4
..
7d27214
100644
(file)
--- a/
lustre/llite/llite_internal.h
+++ b/
lustre/llite/llite_internal.h
@@
-351,6
+351,8
@@
static inline void trunc_sem_down_write(struct ll_trunc_sem *sem)
static inline void trunc_sem_up_write(struct ll_trunc_sem *sem)
{
atomic_set(&sem->ll_trunc_readers, 0);
+ /* match the smp_mb() in wait_var_event()->prepare_to_wait() */
+ smp_mb();
wake_up_var(&sem->ll_trunc_readers);
}