----- Ursprüngliche Mail -----
> Von: "richard" <rich...@nod.at>
> An: "linux-kernel" <linux-kernel@vger.kernel.org>
> CC: t...@kernel.org, "Greg Kroah-Hartman" <gre...@linuxfoundation.org>, 
> ebied...@xmission.com, "dan j williams"
> <dan.j.willi...@intel.com>, "richard" <rich...@nod.at>
> Gesendet: Samstag, 4. Juli 2020 22:56:19
> Betreff: [PATCH] [RFC] kernfs: Allow vm_ops->close() if VMA is never split

> 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 fragments. This is not feasible with reasonable effort.
> 
> Since commit 31383c6865a5 ("mm, hugetlbfs: introduce ->split() to
> vm_operations_struct")
> we can get notified as soon a VMA is split, this can help to relax the
> restriction.
> So I propose to allow having a custom close under the condition that a
> VMA cannot get split.
> 
> Signed-off-by: Richard Weinberger <rich...@nod.at>

*friendly ping*

Thanks,
//richard

Reply via email to