Skip to content

Commit

Permalink
nfsd: warn on odd reply state in nfsd_vfs_read
Browse files Browse the repository at this point in the history
As far as I can tell this shouldn't currently happen--or if it does,
something is wrong and data is going to be corrupted.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
  • Loading branch information
J. Bruce Fields committed Dec 18, 2012
1 parent d5f50b0 commit 79f77bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/nfsd/vfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,7 @@ nfsd_vfs_read(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
.u.data = rqstp,
};

WARN_ON_ONCE(rqstp->rq_resused != 1);
rqstp->rq_resused = 1;
host_err = splice_direct_to_actor(file, &sd, nfsd_direct_splice_actor);
} else {
Expand Down

0 comments on commit 79f77bf

Please sign in to comment.