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 e747b3d720ee..2d07f292b625 100644
--- a/fs/fs_pin.c
+++ b/fs/fs_pin.c
@@ -78,7 +78,7 @@ void mnt_pin_kill(struct mount *m)
78 while (1) { 78 while (1) {
79 struct hlist_node *p; 79 struct hlist_node *p;
80 rcu_read_lock(); 80 rcu_read_lock();
81 p = ACCESS_ONCE(m->mnt_pins.first); 81 p = READ_ONCE(m->mnt_pins.first);
82 if (!p) { 82 if (!p) {
83 rcu_read_unlock(); 83 rcu_read_unlock();
84 break; 84 break;
@@ -92,7 +92,7 @@ void group_pin_kill(struct hlist_head *p)
92 while (1) { 92 while (1) {
93 struct hlist_node *q; 93 struct hlist_node *q;
94 rcu_read_lock(); 94 rcu_read_lock();
95 q = ACCESS_ONCE(p->first); 95 q = READ_ONCE(p->first);
96 if (!q) { 96 if (!q) {
97 rcu_read_unlock(); 97 rcu_read_unlock();
98 break; 98 break;