|
@@ -648,14 +648,14 @@ static unsigned mounts_poll(struct file *file, poll_table *wait)
|
|
{
|
|
{
|
|
struct proc_mounts *p = file->private_data;
|
|
struct proc_mounts *p = file->private_data;
|
|
struct mnt_namespace *ns = p->ns;
|
|
struct mnt_namespace *ns = p->ns;
|
|
- unsigned res = 0;
|
|
|
|
|
|
+ unsigned res = POLLIN | POLLRDNORM;
|
|
|
|
|
|
poll_wait(file, &ns->poll, wait);
|
|
poll_wait(file, &ns->poll, wait);
|
|
|
|
|
|
spin_lock(&vfsmount_lock);
|
|
spin_lock(&vfsmount_lock);
|
|
if (p->event != ns->event) {
|
|
if (p->event != ns->event) {
|
|
p->event = ns->event;
|
|
p->event = ns->event;
|
|
- res = POLLERR;
|
|
|
|
|
|
+ res |= POLLERR | POLLPRI;
|
|
}
|
|
}
|
|
spin_unlock(&vfsmount_lock);
|
|
spin_unlock(&vfsmount_lock);
|
|
|
|
|