linux/fs/kernfs
NeilBrown 7cff4b1836 kernfs: handle poll correctly on 'direct_read' files.
Kernfs supports two styles of read: direct_read and seqfile_read.

The latter supports 'poll' correctly thanks to the update of
'->event' in kernfs_seq_show.
The former does not as '->event' is never updated on a read.

So add an appropriate update in kernfs_file_direct_read().

This was noticed because some 'md' sysfs attributes were
recently changed to use direct reads.

Reported-by: Prakash Punnoor <prakash@punnoor.de>
Reported-by: Torsten Kaiser <just.for.lkml@googlemail.com>
Fixes: 750f199ee8
Signed-off-by: NeilBrown <neilb@suse.de>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-03-16 21:51:20 +01:00
..
dir.c kernfs: remove KERNFS_STATIC_NAME 2015-02-13 21:21:36 -08:00
file.c kernfs: handle poll correctly on 'direct_read' files. 2015-03-16 21:51:20 +01:00
inode.c fs: remove mapping->backing_dev_info 2015-01-20 14:03:05 -07:00
Kconfig kernfs: add CONFIG_KERNFS 2014-02-07 16:08:57 -08:00
kernfs-internal.h fs: deduplicate noop_backing_dev_info 2015-01-20 14:02:54 -07:00
Makefile
mount.c fs: deduplicate noop_backing_dev_info 2015-01-20 14:02:54 -07:00
symlink.c kernfs: remove kernfs_addrm_cxt 2014-02-07 15:42:40 -08:00