]> git.ipfire.org Git - thirdparty/linux.git/commit
NFS/localio: Stop further I/O upon hitting an error
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 2 Jan 2026 21:01:06 +0000 (16:01 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 7 Jan 2026 17:28:26 +0000 (12:28 -0500)
commit001945a777ec4de8610f646397a054c62d272c2d
treef8b229fcd6fe40c05472d0bc42d8071e37a6a3c1
parentdf56ddd057424d21483bd0bee4da3632706d6606
NFS/localio: Stop further I/O upon hitting an error

If the call into the filesystem results in an I/O error, then the next
chunk of data won't be contiguous with the end of the last successful
chunk. So break out of the I/O loop and report the results.
Currently the localio code will do this for a short read/write, but not
for an error.

Fixes: 6a218b9c3183 ("nfs/localio: do not issue misaligned DIO out-of-order")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Reviewed-by: Mike Snitzer <snitzer@kernel.org>
fs/nfs/localio.c