Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information