android_kernel_motorola_sm6375/fs/kernfs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
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 <[email protected]>
Reported-by: Torsten Kaiser <[email protected]>
Fixes: 750f199ee8
Signed-off-by: NeilBrown <[email protected]>
Acked-by: Tejun Heo <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
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