Re: [RFC PATCH] vfs: shutdown lease notifications on file close

2017-10-13 Thread Jeff Layton
On Fri, 2017-10-13 at 08:56 -0700, Dan Williams wrote: > While implementing MAP_DIRECT, an mmap flag that arranges for an > FL_LAYOUT lease to be established, Al noted: > > You are not even guaranteed that descriptor will remain be still > open by the time you pass it down to your helper,

Re: [RFC PATCH] vfs: shutdown lease notifications on file close

2017-10-13 Thread Dan Williams
On Fri, Oct 13, 2017 at 10:43 AM, Dan Williams wrote: > On Fri, Oct 13, 2017 at 10:01 AM, Al Viro wrote: >> On Fri, Oct 13, 2017 at 08:56:10AM -0700, Dan Williams wrote: >>> While implementing MAP_DIRECT, an mmap flag that arranges for an >>> FL_LAYOUT lease to be established, Al noted: >>> >>>

Re: [RFC PATCH] vfs: shutdown lease notifications on file close

2017-10-13 Thread Dan Williams
On Fri, Oct 13, 2017 at 10:01 AM, Al Viro wrote: > On Fri, Oct 13, 2017 at 08:56:10AM -0700, Dan Williams wrote: >> While implementing MAP_DIRECT, an mmap flag that arranges for an >> FL_LAYOUT lease to be established, Al noted: >> >> You are not even guaranteed that descriptor will remain be

Re: [RFC PATCH] vfs: shutdown lease notifications on file close

2017-10-13 Thread Al Viro
On Fri, Oct 13, 2017 at 08:56:10AM -0700, Dan Williams wrote: > While implementing MAP_DIRECT, an mmap flag that arranges for an > FL_LAYOUT lease to be established, Al noted: > > You are not even guaranteed that descriptor will remain be still > open by the time you pass it down to your h

[RFC PATCH] vfs: shutdown lease notifications on file close

2017-10-13 Thread Dan Williams
While implementing MAP_DIRECT, an mmap flag that arranges for an FL_LAYOUT lease to be established, Al noted: You are not even guaranteed that descriptor will remain be still open by the time you pass it down to your helper, nevermind the moment when event actually happens... The firs