I'm still very unhappy about the get/set flag state. What is the reason you can't use/extend leases? (take a look at the fcntl man page and look for Leases). A variant of the concept is what the pNFS block server uses.
- [PATCH v6 5/5] fs, fcntl: add F_MAP_DIRECT Dan Williams
- [PATCH v6 4/5] fs, xfs: introduce MAP_DIRECT for creatin... Dan Williams
- Re: [PATCH v6 4/5] fs, xfs: introduce MAP_DIRECT fo... Christoph Hellwig
- Re: [PATCH v6 4/5] fs, xfs: introduce MAP_DIREC... Dan Williams
- Re: [PATCH v6 4/5] fs, xfs: introduce MAP_D... Christoph Hellwig
- Re: [PATCH v6 4/5] fs, xfs: introduce M... Dan Williams
- [PATCH v6 1/5] vfs: add flags parameter to ->mmap() i... Dan Williams
- Re: [PATCH v6 1/5] vfs: add flags parameter to ->... Christoph Hellwig
- Re: [PATCH v6 1/5] vfs: add flags parameter to ... Dan Williams
- [PATCH v6 2/5] fs, xfs: introduce S_IOMAP_SEALED Dan Williams
- Re: [PATCH v6 2/5] fs, xfs: introduce S_IOMAP_SEALE... Christoph Hellwig
- Re: [PATCH v6 2/5] fs, xfs: introduce S_IOMAP_S... Dan Williams
- Re: [PATCH v6 2/5] fs, xfs: introduce S_IOM... Dan Williams
- Re: [PATCH v6 0/5] MAP_DIRECT and block-map-atomic files Christoph Hellwig