summaryrefslogtreecommitdiff
path: root/fs/nfs/write.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2022-07-22 21:12:19 +0300
committerTrond Myklebust <trond.myklebust@hammerspace.com>2022-07-23 22:28:59 +0300
commit55051c0ced7d322a169f8603d306ee6ec079f8ae (patch)
treee63eee1a2368db5f0185fd178b31382077cf3ac3 /fs/nfs/write.c
parent8efc4bbe84a8bdd26e848ed93a8900fad1b44ca2 (diff)
downloadlinux-55051c0ced7d322a169f8603d306ee6ec079f8ae.tar.xz
nfs: always check dreq->error after a commit
When the client gets back a short DIO write, it will then attempt to issue another write to finish the DIO request. If that write then fails (as is often the case in an -ENOSPC situation), then we still may need to issue a COMMIT if the earlier short write was unstable. If that COMMIT then succeeds, then we don't want the client to reschedule the write requests, and to instead just return a short write. Otherwise, we can end up looping over the same DIO write forever. Always consult dreq->error after a successful RPC, even when the flag state is not NFS_ODIRECT_DONE. Link: https://bugzilla.redhat.com/show_bug.cgi?id=2028370 Reported-by: Boyang Xue <bxue@redhat.com> Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/write.c')
0 files changed, 0 insertions, 0 deletions