summaryrefslogtreecommitdiffstats
path: root/fs/debugfs
diff options
context:
space:
mode:
authorJuha Yrjölä <juha.yrjola@solidboot.com>2006-08-03 18:06:25 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2006-09-26 06:08:36 +0200
commiteea3f8911f34001d2450a272c2d02f175279b53c (patch)
tree0565109ca2020176b42e1f4bd2f14dc08aae84ba /fs/debugfs
parentDriver core: add const to class_create (diff)
downloadlinux-eea3f8911f34001d2450a272c2d02f175279b53c.tar.xz
linux-eea3f8911f34001d2450a272c2d02f175279b53c.zip
sysfs: Make poll behaviour consistent
When no events have been reported by sysfs_notify(), sd->s_events was previously set to zero. The initial value for new readers is also zero, so poll was blocking, regardless of whether the attribute was read by the process or not. Make poll behave consistently by setting the initial value of sd->s_events to non-zero. Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/debugfs')
0 files changed, 0 insertions, 0 deletions