]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nfsd: don't abort copies early
authorJ. Bruce Fields <bfields@redhat.com>
Wed, 24 Feb 2021 18:39:50 +0000 (13:39 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Sat, 6 Mar 2021 21:41:48 +0000 (16:41 -0500)
commitbfdd89f232aa2de5a4b3fc985cba894148b830a8
tree47e50128eed0e3563cdcda3394568d6c8e33174a
parent7005227369079963d25fb2d5d736d0feb2c44cf6
nfsd: don't abort copies early

The typical result of the backwards comparison here is that the source
server in a server-to-server copy will return BAD_STATEID within a few
seconds of the copy starting, instead of giving the copy a full lease
period, so the copy_file_range() call will end up unnecessarily
returning a short read.

Fixes: 624322f1adc5 "NFSD add COPY_NOTIFY operation"
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4state.c