On Mon, Jun 12, 2017 at 11:14:31PM -0700, Christoph Hellwig wrote: > On Mon, Jun 12, 2017 at 05:38:13PM -0500, Goldwyn Rodrigues wrote: > > We had FS_NOWAIT in filesystem type flags (in v3), but retracted it > > later in v4. > > A per-fs flag is wrong as file_operation may have different > capabilities. > > > I will work on adding FMODE_AIO_NOWAIT in the meantime. > > If Al prefers that let's go with it for now. One other thing I'd > love is a supported flags field in struct file_operations that we > can compare the flags against. Al, does that sound good as well? Which flags are you talking about? aio ones? AFAICS, it's the same kind of thing as "can we lseek?" or "can we read/pread?", etc. What would that field look like? Note that some of those might depend upon the flags passed to open(), so shoving them into file_operations might mean splitting file_operations instances... Details, please.