diff options
author | J. Bruce Fields <bfields@redhat.com> | 2012-12-10 18:04:53 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-12-17 21:55:46 -0500 |
commit | 79f77bf9a4e3dd5ead006b8f17e7c4ff07d8374e (patch) | |
tree | c191bbba8a3670f8a5727262ea010d8ce6e91199 /fs | |
parent | d5f50b0c290431c65377c4afa1c764e2c3fe5305 (diff) |
nfsd: warn on odd reply state in nfsd_vfs_read
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfsd/vfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index 0ef9b6b410a2..b31e46eeb026 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c | |||
@@ -936,6 +936,7 @@ nfsd_vfs_read(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, | |||
936 | .u.data = rqstp, | 936 | .u.data = rqstp, |
937 | }; | 937 | }; |
938 | 938 | ||
939 | WARN_ON_ONCE(rqstp->rq_resused != 1); | ||
939 | rqstp->rq_resused = 1; | 940 | rqstp->rq_resused = 1; |
940 | host_err = splice_direct_to_actor(file, &sd, nfsd_direct_splice_actor); | 941 | host_err = splice_direct_to_actor(file, &sd, nfsd_direct_splice_actor); |
941 | } else { | 942 | } else { |