]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nfs/localio: remove unecessary ENOTBLK handling in DIO WRITE support
authorMike Snitzer <snitzer@kernel.org>
Mon, 27 Oct 2025 13:08:31 +0000 (09:08 -0400)
committerAnna Schumaker <anna.schumaker@oracle.com>
Mon, 10 Nov 2025 15:32:28 +0000 (10:32 -0500)
commit51a491f2708de79da76791523d40926921823b7e
tree6e3bd87a3d02ca8b23895d224031543c4f1297b2
parentfb2cba0854a7f315c8100a807a6959b99d72479e
nfs/localio: remove unecessary ENOTBLK handling in DIO WRITE support

Each filesystem is meant to fallback to retrying DIO in terms buffered
IO when it might encounter -ENOTBLK when issuing DIO (which can happen
if the VFS cannot invalidate the page cache).

So NFS doesn't need special handling for -ENOTBLK.

Also, explicitly initialize a couple DIO related iocb members rather
than simply rely on data structure zeroing.

Fixes: c817248fc831 ("nfs/localio: add proper O_DIRECT support for READ and WRITE")
Reported-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
fs/nfs/localio.c