Re: [PATCH] [RFC] kernfs: Allow vm_ops->close() if VMA is never split

2020-07-13 Thread Eric W. Biederman
Richard Weinberger writes: > 10 years ago commit a6849fa1f7d7 ("sysfs: Fail bin file mmap if vma close is > implemented.") > removed support for vm_ops->close() for mmap on sysfs. > As far I understand the reason is that due to the wrapping in kernfs > every VMA split operation needs to be track

Re: [PATCH] [RFC] kernfs: Allow vm_ops->close() if VMA is never split

2020-07-13 Thread Richard Weinberger
- Ursprüngliche Mail - > Von: "richard" > An: "linux-kernel" > CC: t...@kernel.org, "Greg Kroah-Hartman" , > ebied...@xmission.com, "dan j williams" > , "richard" > Gesendet: Samstag, 4. Juli 2020 22:56:19 > Bet

[PATCH] [RFC] kernfs: Allow vm_ops->close() if VMA is never split

2020-07-04 Thread Richard Weinberger
10 years ago commit a6849fa1f7d7 ("sysfs: Fail bin file mmap if vma close is implemented.") removed support for vm_ops->close() for mmap on sysfs. As far I understand the reason is that due to the wrapping in kernfs every VMA split operation needs to be tracked to call vm_ops->close() for all frag