Re: [PATCH RFC 02/10] fs/locks: Export F_LAYOUT lease to user space

2019-06-12 Thread Jan Kara
On Tue 11-06-19 14:38:13, Ira Weiny wrote: > On Sun, Jun 09, 2019 at 09:00:24AM -0400, Jeff Layton wrote: > > On Wed, 2019-06-05 at 18:45 -0700, ira.we...@intel.com wrote: > > > From: Ira Weiny > > > > > > GUP longterm pins of non-pagecache file system pages (eg FS DAX) are > > > currently

Re: [PATCH RFC 02/10] fs/locks: Export F_LAYOUT lease to user space

2019-06-11 Thread Ira Weiny
On Sun, Jun 09, 2019 at 09:00:24AM -0400, Jeff Layton wrote: > On Wed, 2019-06-05 at 18:45 -0700, ira.we...@intel.com wrote: > > From: Ira Weiny > > > > GUP longterm pins of non-pagecache file system pages (eg FS DAX) are > > currently disallowed because they are unsafe. > > > > The danger for

Re: [PATCH RFC 02/10] fs/locks: Export F_LAYOUT lease to user space

2019-06-09 Thread Jeff Layton
On Wed, 2019-06-05 at 18:45 -0700, ira.we...@intel.com wrote: > From: Ira Weiny > > GUP longterm pins of non-pagecache file system pages (eg FS DAX) are > currently disallowed because they are unsafe. > > The danger for pinning these pages comes from the fact that hole punch > and/or truncate

[PATCH RFC 02/10] fs/locks: Export F_LAYOUT lease to user space

2019-06-05 Thread ira . weiny
From: Ira Weiny GUP longterm pins of non-pagecache file system pages (eg FS DAX) are currently disallowed because they are unsafe. The danger for pinning these pages comes from the fact that hole punch and/or truncate of those files results in the pages being mapped and pinned by a user space