]> git.baikalelectronics.ru Git - kernel.git/commit
sysfs: Fail bin file mmap if vma close is implemented.
authorEric W. Biederman <ebiederm@aristanetworks.com>
Mon, 20 Sep 2010 07:56:27 +0000 (00:56 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:16:43 +0000 (10:16 -0700)
commit27e186e303845896bfb7741a9ef44acd7a75a308
treee87b4051d0b1fce3a88abf68bfd8d7315db0a52a
parent8fa407073a6402d20c2c5af7b073fd72deaccfa4
sysfs: Fail bin file mmap if vma close is implemented.

It is not reasonably possible to wrap vma->close().  To correctly
wrap close would imply calling close on any vmas that remain when
sysfs_remove_bin_file is called.  Finding the proper lists walking
them getting the locking right etc, requires deep knowledge of the
mm subsystem and as such would require assistence from the mm
subsystem to implement.  That assistence does not currently exist.

Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/bin.c