On Mon 10-04-17 00:45:39, Christoph Hellwig wrote: > On Tue, Apr 04, 2017 at 01:41:09PM -0500, Goldwyn Rodrigues wrote: > > I am working on incorporating RWF_* flags. However, I am not sure how > > RWF_* flags would get rid of FS_NOWAIT/FS_NOWAIT_IO. Since most of > > "blocking" information is with the filesystem, it is a per-filesystem > > flag to block out (EOPNOTSUPP) the filesystems which do not support it. > > You need to check the flag in the actual read/write methods as the > support for features on Linux is not a per-file_system_type thing. I don't understand here. Do you want that all filesystems support NOWAIT direct IO? IMO that's not realistic and also not necessary. In reality different filesystems support different sets or operations and we have a precedens for that in various fallocate operations, rename exchange, or O_TMPFILE support... Honza -- Jan Kara <jack@xxxxxxxx> SUSE Labs, CR