+1
−0
+1
−0
+50
−17
+1
−0
+24
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
This patch prevents a race between IO and removing a file from sysfs. It introduces a list of sysfs_buffers associated with a file at the inode. Upon removal of a file the list is walked and the buffers marked orphaned. IO to orphaned buffers fails with -ENODEV. The driver can safely free associated data structures or be unloaded. Signed-off-by:Oliver Neukum <oliver@neukum.name> Acked-by:
Maneesh Soni <maneesh@in.ibm.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@suse.de>