]> git.ipfire.org Git - thirdparty/linux.git/commit
nfs: add nowait version of nfs_start_io_direct
authorDylan Yudaken <dyudaken@gmail.com>
Sun, 7 Jun 2026 07:31:54 +0000 (08:31 +0100)
committerAnna Schumaker <anna.schumaker@hammerspace.com>
Mon, 8 Jun 2026 16:07:16 +0000 (12:07 -0400)
commite3a78029444777b7bb75693cfa8090b189e47cdc
tree3f79e681289d3f72ed4722e83e95757f40a60bcc
parent1d62e659c0bf11649cf48e002c2a55d148f2610a
nfs: add nowait version of nfs_start_io_direct

nfs_start_io_direct might block on existing operations to the same
inode. In order to support NOWAIT O_DIRECT reads, add a non-blocking
version of this nfs_start_io_direct that just returns -EAGAIN if locks
could not be taken.

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