Re: [PATCH v4 6/6] shm: wait for pins to be released when sealing

2014-07-23 Thread Hugh Dickins
On Sun, 20 Jul 2014, David Herrmann wrote: > If we set SEAL_WRITE on a file, we must make sure there cannot be any > ongoing write-operations on the file. For write() calls, we simply lock > the inode mutex, for mmap() we simply verify there're no writable > mappings. However, there might be pages

[PATCH v4 6/6] shm: wait for pins to be released when sealing

2014-07-20 Thread David Herrmann
If we set SEAL_WRITE on a file, we must make sure there cannot be any ongoing write-operations on the file. For write() calls, we simply lock the inode mutex, for mmap() we simply verify there're no writable mappings. However, there might be pages pinned by AIO, Direct-IO and similar operations via