Skip to content

Commit 10532b5

Browse files
J. Bruce Fieldstorvalds
authored andcommitted
Revert "nfsd: warn on odd reply state in nfsd_vfs_read"
This reverts commit 79f77bf. This is obviously wrong, and I have no idea how I missed seeing the warning in testing: I must just not have looked at the right logs. The caller bumps rq_resused/rq_next_page, so it will always be hit on a large enough read. Reported-by: Dave Jones <davej@redhat.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 184e251 commit 10532b5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/nfsd/vfs.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,6 @@ nfsd_vfs_read(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
934934
.u.data = rqstp,
935935
};
936936

937-
WARN_ON_ONCE(rqstp->rq_next_page != rqstp->rq_respages + 1);
938937
rqstp->rq_next_page = rqstp->rq_respages + 1;
939938
host_err = splice_direct_to_actor(file, &sd, nfsd_direct_splice_actor);
940939
} else {

0 commit comments

Comments
 (0)