]> bbs.cooldavid.org Git - net-next-2.6.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)
commita6849fa1f7d7d7adbeb6a696beeabfa078acf173
treee87b4051d0b1fce3a88abf68bfd8d7315db0a52a
parent5fc6e9cbce3342379719fc0f8294c45bb888f5cc
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