summaryrefslogtreecommitdiffstats
path: root/fs/fs_pin.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fs_pin.c')
-rw-r--r--fs/fs_pin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/fs_pin.c b/fs/fs_pin.c
index 0d285fd5b44a..a6497cf8ae53 100644
--- a/fs/fs_pin.c
+++ b/fs/fs_pin.c
@@ -79,7 +79,7 @@ void mnt_pin_kill(struct mount *m)
79 while (1) { 79 while (1) {
80 struct hlist_node *p; 80 struct hlist_node *p;
81 rcu_read_lock(); 81 rcu_read_lock();
82 p = ACCESS_ONCE(m->mnt_pins.first); 82 p = READ_ONCE(m->mnt_pins.first);
83 if (!p) { 83 if (!p) {
84 rcu_read_unlock(); 84 rcu_read_unlock();
85 break; 85 break;
@@ -93,7 +93,7 @@ void group_pin_kill(struct hlist_head *p)
93 while (1) { 93 while (1) {
94 struct hlist_node *q; 94 struct hlist_node *q;
95 rcu_read_lock(); 95 rcu_read_lock();
96 q = ACCESS_ONCE(p->first); 96 q = READ_ONCE(p->first);
97 if (!q) { 97 if (!q) {
98 rcu_read_unlock(); 98 rcu_read_unlock();
99 break; 99 break;