diff options
Diffstat (limited to 'fs/proc_namespace.c')
-rw-r--r-- | fs/proc_namespace.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/proc_namespace.c b/fs/proc_namespace.c index 5fe34c355e85..439406e081af 100644 --- a/fs/proc_namespace.c +++ b/fs/proc_namespace.c | |||
@@ -20,15 +20,15 @@ static unsigned mounts_poll(struct file *file, poll_table *wait) | |||
20 | struct proc_mounts *p = proc_mounts(file->private_data); | 20 | struct proc_mounts *p = proc_mounts(file->private_data); |
21 | struct mnt_namespace *ns = p->ns; | 21 | struct mnt_namespace *ns = p->ns; |
22 | unsigned res = POLLIN | POLLRDNORM; | 22 | unsigned res = POLLIN | POLLRDNORM; |
23 | int event; | ||
23 | 24 | ||
24 | poll_wait(file, &p->ns->poll, wait); | 25 | poll_wait(file, &p->ns->poll, wait); |
25 | 26 | ||
26 | br_read_lock(&vfsmount_lock); | 27 | event = ACCESS_ONCE(ns->event); |
27 | if (p->m.poll_event != ns->event) { | 28 | if (p->m.poll_event != event) { |
28 | p->m.poll_event = ns->event; | 29 | p->m.poll_event = event; |
29 | res |= POLLERR | POLLPRI; | 30 | res |= POLLERR | POLLPRI; |
30 | } | 31 | } |
31 | br_read_unlock(&vfsmount_lock); | ||
32 | 32 | ||
33 | return res; | 33 | return res; |
34 | } | 34 | } |