diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2010-02-05 08:40:25 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-03-03 22:07:59 +0300 |
commit | 9f5596af44514f99e3a654a4f7cb813354b9e516 (patch) | |
tree | 6a579bf387683b910bd32e8aa7edef9956e58dd1 /fs/proc | |
parent | e21e7095a78867364d7aa9223d833ccb966f93f3 (diff) | |
download | linux-9f5596af44514f99e3a654a4f7cb813354b9e516.tar.xz |
take check for new events in namespace (guts of mounts_poll()) to namespace.c
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/base.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index 58324c299165..746895ddfda1 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -647,17 +647,11 @@ static int mounts_release(struct inode *inode, struct file *file) static unsigned mounts_poll(struct file *file, poll_table *wait) { struct proc_mounts *p = file->private_data; - struct mnt_namespace *ns = p->ns; unsigned res = POLLIN | POLLRDNORM; - poll_wait(file, &ns->poll, wait); - - spin_lock(&vfsmount_lock); - if (p->event != ns->event) { - p->event = ns->event; + poll_wait(file, &p->ns->poll, wait); + if (mnt_had_events(p)) res |= POLLERR | POLLPRI; - } - spin_unlock(&vfsmount_lock); return res; } |