]> git.ipfire.org Git - thirdparty/linux.git/commit
nfs: expose FMODE_NOWAIT for read-only files
authorDylan Yudaken <dyudaken@gmail.com>
Sun, 7 Jun 2026 07:31:55 +0000 (08:31 +0100)
committerAnna Schumaker <anna.schumaker@hammerspace.com>
Mon, 8 Jun 2026 16:07:16 +0000 (12:07 -0400)
commitef74e4453856716dbdaba06eaee5251e37e6882e
tree5dac876ba70cac4ac4bc6820b0a238715327174c
parente3a78029444777b7bb75693cfa8090b189e47cdc
nfs: expose FMODE_NOWAIT for read-only files

NFS O_DIRECT reads already (mostly) handle async requests, with the
exception of locking the inode for direct.
Handle async requests properly by using nfs_start_io_direct_nowait,
and then expose FMODE_NOWAIT since it's now supported for direct reads.

Signed-off-by: Dylan Yudaken <dyudaken@gmail.com>
Signed-off-by: Anna Schumaker <anna.schumaker@hammerspace.com>
fs/nfs/direct.c
fs/nfs/file.c