diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2007-07-13 16:42:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-13 19:45:43 -0400 |
commit | 4fbef206daead133085fe33905f5e842d38fb8da (patch) | |
tree | 94689f4fc018e0a599db08a6902fbc079d33c07e /fs | |
parent | 4fd885170bf13841ada921495b7b00c4b9971cf9 (diff) |
nfsd: fix nfsd_vfs_read() splice actor setup
When nfsd was transitioned to use splice instead of sendfile() for data
transfers, a line setting the page index was lost. Restore it, so that
nfsd is functional when that path is used.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
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 8604e35bd48e..945b1cedde2b 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c | |||
@@ -879,6 +879,7 @@ nfsd_vfs_read(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, | |||
879 | .u.data = rqstp, | 879 | .u.data = rqstp, |
880 | }; | 880 | }; |
881 | 881 | ||
882 | rqstp->rq_resused = 1; | ||
882 | host_err = splice_direct_to_actor(file, &sd, nfsd_direct_splice_actor); | 883 | host_err = splice_direct_to_actor(file, &sd, nfsd_direct_splice_actor); |
883 | } else { | 884 | } else { |
884 | oldfs = get_fs(); | 885 | oldfs = get_fs(); |