Files
ubports_kernel_google_msm/fs
Tejun Heo a4e8b91254 sysfs: move sysfs file poll implementation to sysfs_open_dirent
Sysfs file poll implementation is scattered over sysfs and kobject.
Event numbering is done in sysfs_dirent but wait itself is done on
kobject.  This not only unecessarily bloats both kobject and
sysfs_dirent but is also buggy - if a sysfs_dirent is removed while
there still are pollers, the associaton betwen the kobject and
sysfs_dirent breaks and kobject may be freed with the pollers still
sleeping on it.

This patch moves whole poll implementation into sysfs_open_dirent.
Each time a sysfs_open_dirent is created, event number restarts from 1
and pollers sleep on sysfs_open_dirent.  As event sequence number is
meaningless without any open file and pollers should have open file
and thus sysfs_open_dirent, this ephemeral event counting works and is
a saner implementation.

This patch fixes the dnagling sleepers bug and reduces the sizes of
kobject and sysfs_dirent by one pointer.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-10-12 14:51:11 -07:00
..
2007-08-22 19:52:46 -07:00
2007-05-08 11:14:59 -07:00
2007-10-12 00:29:50 -07:00
2007-09-28 15:36:42 -07:00
2007-07-16 09:05:52 -07:00
2007-07-31 15:39:36 -07:00
2007-09-11 17:21:19 -07:00
2007-09-25 08:51:04 -07:00
2007-10-12 00:29:50 -07:00
2007-10-08 12:58:14 -07:00
2007-07-19 10:04:43 -07:00
2007-07-19 10:04:45 -07:00
2007-07-29 17:09:29 -07:00
2007-05-18 13:09:34 -07:00
2007-09-20 13:19:59 -07:00
2007-05-21 09:18:19 -07:00
2007-05-08 11:15:01 -07:00
2007-10-10 09:25:57 +02:00
2007-05-08 11:15:09 -07:00
2007-07-16 09:05:48 -07:00
2007-09-11 11:38:25 -07:00
2007-05-09 06:44:57 +02:00
2007-09-11 17:21:27 -07:00
2007-05-11 08:29:36 -07:00
2007-07-19 10:04:45 -07:00
2007-07-19 10:04:45 -07:00
2007-07-27 08:08:51 +02:00
2007-07-27 15:40:13 -07:00
2007-07-10 08:04:15 +02:00
2007-09-20 13:19:59 -07:00
2007-07-16 09:05:46 -07:00